Skip to content

Commit dc4f0bf

Browse files
committed
ci(v2-rc3): add stark-backend patching workflow setup (#2952)
## Summary - Track `.cargo/config.toml` with `git-fetch-with-cli` and a commented-out SSH patch block for `stark-backend`. - Load `GH_ACTIONS_DEPLOY_PRIVATE_KEY` before workflow checkouts so SSH patch URLs can resolve in CI. - Stop ignoring `.cargo/config.toml` so the rc3 patching setup is available on the branch. ## Validation - Parsed all workflow YAML files. - Checked every `actions/checkout` has an earlier SSH-agent step in the same job. - Ran `git diff --check`.
1 parent 7507088 commit dc4f0bf

30 files changed

Lines changed: 176 additions & 1 deletion

.cargo/config.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[net]
2+
git-fetch-with-cli = true
3+
4+
# Uncomment this block when testing OpenVM against a patched stark-backend branch.
5+
# [patch."https://github.com/openvm-org/stark-backend.git"]
6+
# openvm-stark-backend = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }
7+
# openvm-stark-sdk = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }
8+
# openvm-cpu-backend = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }
9+
# openvm-cuda-backend = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }
10+
# openvm-cuda-builder = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }
11+
# openvm-cuda-common = { git = "ssh://git@github.com/openvm-org/stark-backend.git", branch = "main" }

.github/workflows/base-tests.cuda.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
- uses: runs-on/action@v2
3131
with:
3232
sccache: s3
33+
- name: Load SSH key
34+
uses: webfactory/ssh-agent@v0.9.0
35+
with:
36+
ssh-private-key: |
37+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
3338
- uses: actions/checkout@v5
3439
- uses: dtolnay/rust-toolchain@stable
3540
env:

.github/workflows/benchmark-call.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ jobs:
9696
##########################################################################
9797
# Environment setup #
9898
##########################################################################
99+
- name: Load SSH key
100+
uses: webfactory/ssh-agent@v0.9.0
101+
with:
102+
ssh-private-key: |
103+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
99104
- uses: actions/checkout@v5
100105
with:
101106
ref: ${{ github.event.pull_request.head.sha || github.sha }}

.github/workflows/benchmarks.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868
outputs:
6969
matrix: ${{ steps.create-matrix.outputs.matrix }}
7070
steps:
71+
- name: Load SSH key
72+
uses: webfactory/ssh-agent@v0.9.0
73+
with:
74+
ssh-private-key: |
75+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
7176
- uses: actions/checkout@v5
7277
with:
7378
ref: ${{ env.CURRENT_SHA }}
@@ -164,6 +169,11 @@ jobs:
164169
##########################################################################
165170
# Download individual result .md files from S3 and combine them #
166171
##########################################################################
172+
- name: Load SSH key
173+
uses: webfactory/ssh-agent@v0.9.0
174+
with:
175+
ssh-private-key: |
176+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
167177
- uses: actions/checkout@v5
168178
with:
169179
ref: ${{ env.CURRENT_SHA }}

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
- runs-on=${{ github.run_id }}/volume=80gb/runner=64cpu-linux-x64/image=ubuntu24-full-x64/extras=s3-cache
1919
steps:
2020
- uses: runs-on/action@v2
21+
- name: Load SSH key
22+
uses: webfactory/ssh-agent@v0.9.0
23+
with:
24+
ssh-private-key: |
25+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
2126
- uses: actions/checkout@v5
2227
- uses: dtolnay/rust-toolchain@stable
2328
- uses: Swatinem/rust-cache@v2

.github/workflows/claude-code-review.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
id-token: write
2727

2828
steps:
29+
- name: Load SSH key
30+
uses: webfactory/ssh-agent@v0.9.0
31+
with:
32+
ssh-private-key: |
33+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
2934
- name: Checkout repository
3035
uses: actions/checkout@v6
3136
with:

.github/workflows/claude.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
id-token: write
2626
actions: read # Required for Claude to read CI results on PRs
2727
steps:
28+
- name: Load SSH key
29+
uses: webfactory/ssh-agent@v0.9.0
30+
with:
31+
ssh-private-key: |
32+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
2833
- name: Checkout repository
2934
uses: actions/checkout@v4
3035
with:

.github/workflows/cli.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
- uses: runs-on/action@v2
4141
with:
4242
sccache: s3
43+
- name: Load SSH key
44+
uses: webfactory/ssh-agent@v0.9.0
45+
with:
46+
ssh-private-key: |
47+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
4348
- uses: actions/checkout@v5
4449
- uses: dtolnay/rust-toolchain@stable
4550
- uses: ./.github/actions/sccache
@@ -111,6 +116,11 @@ jobs:
111116
- uses: runs-on/action@v2
112117
with:
113118
sccache: s3
119+
- name: Load SSH key
120+
uses: webfactory/ssh-agent@v0.9.0
121+
with:
122+
ssh-private-key: |
123+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
114124
- uses: actions/checkout@v5
115125
- uses: dtolnay/rust-toolchain@stable
116126
env:

.github/workflows/continuations.cuda.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
- uses: runs-on/action@v2
2727
with:
2828
sccache: s3
29+
- name: Load SSH key
30+
uses: webfactory/ssh-agent@v0.9.0
31+
with:
32+
ssh-private-key: |
33+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
2934
- uses: actions/checkout@v5
3035
with:
3136
submodules: recursive

.github/workflows/continuations.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
- uses: runs-on/action@v2
2828
with:
2929
sccache: s3
30+
- name: Load SSH key
31+
uses: webfactory/ssh-agent@v0.9.0
32+
with:
33+
ssh-private-key: |
34+
${{ secrets.GH_ACTIONS_DEPLOY_PRIVATE_KEY }}
3035
- uses: actions/checkout@v6
3136
with:
3237
submodules: recursive

0 commit comments

Comments
 (0)