-
Notifications
You must be signed in to change notification settings - Fork 12
build: configure GitHub Copilot coding agent environment #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lklimek
merged 5 commits into
v1.0-dev
from
copilot/configure-github-copilot-environment
Mar 12, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a9e3bce
Initial plan
Copilot 2720a2e
build: configure GitHub Copilot environment (copilot-setup-steps.yml)
Copilot 120af17
build: narrow pre-build to tenderdash-proto and add pull_request trigger
Copilot 6deca9f
build: align copilot-setup-steps with project workflow conventions
Copilot 8da20c5
Update .github/workflows/copilot-setup-steps.yml
lklimek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: "Copilot Setup Steps" | ||
|
|
||
| # Configures the environment for GitHub Copilot coding agent before it | ||
| # starts work on issues/PRs. The job name MUST be "copilot-setup-steps" | ||
| # for Copilot to recognize it. | ||
| # | ||
| # This workflow installs all system dependencies, the pinned Rust toolchain, | ||
| # and protoc, then pre-builds tenderdash-proto so that | ||
| # tenderdash-proto-compiler (which downloads Tenderdash sources from the | ||
| # internet during cargo build) runs here — before the network-restricted | ||
| # agent sandbox — and its output is available to subsequent steps. | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/copilot-setup-steps.yml | ||
|
|
||
| jobs: | ||
| copilot-setup-steps: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Cache Cargo registry | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-registry- | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: 1.92 | ||
| components: clippy, rustfmt | ||
| override: true | ||
|
|
||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y build-essential pkg-config clang cmake libsqlite3-dev | ||
|
|
||
| - name: Install protoc | ||
| run: | | ||
| curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-linux-x86_64.zip | ||
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local bin/protoc | ||
| sudo unzip -o protoc-25.2-linux-x86_64.zip -d /usr/local 'include/*' | ||
| rm -f protoc-25.2-linux-x86_64.zip | ||
| env: | ||
| PROTOC: /usr/local/bin/protoc | ||
|
|
||
| - name: Pre-build tenderdash-proto | ||
| # Building tenderdash-proto is sufficient to trigger its build.rs, | ||
| # which downloads Tenderdash sources from the internet. This must | ||
| # happen here, before the network-restricted agent sandbox starts. | ||
| uses: actions-rs/cargo@v1 | ||
| with: | ||
| command: build | ||
| args: -p tenderdash-proto --locked | ||
| env: | ||
| PROTOC: /usr/local/bin/protoc | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.