Skip to content

Commit 1a24a9d

Browse files
critesjoshclaude
andcommitted
Fix CI: set RUST_MIN_STACK to prevent nargo stack overflow
The nargo binary bundled with Aztec overflows its default stack when compiling contracts. Set RUST_MIN_STACK=8388608 (8MB) for all aztec compile/test steps across workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent db3b7f8 commit 1a24a9d

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/note-send-proof-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868

6969
- name: Compile contract and generate artifacts
7070
working-directory: note-send-proof
71+
env:
72+
RUST_MIN_STACK: "8388608"
7173
run: script -e -c "yarn ccc"
7274

7375
- name: Generate note hash data

.github/workflows/prediction-market-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,15 @@ jobs:
7070

7171
- name: Run Noir unit tests
7272
working-directory: prediction-market
73+
env:
74+
RUST_MIN_STACK: "8388608"
7375
run: script -e -c "aztec test"
7476
timeout-minutes: 10
7577

7678
- name: Compile contract and generate artifacts
7779
working-directory: prediction-market
80+
env:
81+
RUST_MIN_STACK: "8388608"
7882
run: |
7983
script -e -c "aztec compile"
8084
script -e -c "aztec codegen target -o artifacts"

.github/workflows/recursive-verification-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979

8080
- name: Compile contract and generate artifacts
8181
working-directory: recursive_verification
82+
env:
83+
RUST_MIN_STACK: "8388608"
8284
run: script -e -c "yarn ccc"
8385

8486
- name: Generate proof data

0 commit comments

Comments
 (0)