1818 runs-on : ubuntu-latest
1919 env :
2020 AZTEC_ENV : local-network
21- AZTEC_VERSION : 3 .0.0-devnet.6-patch.1
21+ AZTEC_VERSION : 4 .0.0-nightly.20260211
2222
2323 steps :
2424 - name : Checkout repository
@@ -31,57 +31,38 @@ jobs:
3131 cache : " yarn"
3232 cache-dependency-path : recursive_verification/yarn.lock
3333
34- - name : Set up Docker
35- uses : docker/setup-buildx-action@v3
34+ - name : Install Foundry
35+ uses : foundry-rs/foundry-toolchain@v1
3636
3737 - name : Install Aztec CLI
3838 run : |
39- curl -s https://install.aztec.network > tmp.sh
40- VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
41- rm tmp.sh
39+ INSTALL_URL=" https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
40+ curl -sL $INSTALL_URL > tmp.sh
41+ VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"
4242
4343 - name : Update path
44- run : echo "$HOME/.aztec/bin" >> $GITHUB_PATH
45-
46- - name : Set Aztec version and start local network
4744 run : |
48- aztec-up ${{ env.AZTEC_VERSION }}
49- docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
50- aztec start --local-network &
51-
52- - name : Wait for local network to be ready
53- run : |
54- echo "Waiting for local network to start..."
55- MAX_RETRIES=60
56- for i in $(seq 1 $MAX_RETRIES); do
57- if curl -s http://localhost:8080/status >/dev/null 2>&1; then
58- echo "✅ Local network is ready!"
59- break
60- fi
61- if [ $i -eq $MAX_RETRIES ]; then
62- echo "❌ Local network failed to start after $MAX_RETRIES attempts"
63- exit 1
64- fi
65- echo "Waiting... ($i/$MAX_RETRIES)"
66- sleep 2
67- done
45+ echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
46+ echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
47+ echo "$HOME/.aztec/bin" >> $GITHUB_PATH
6848
6949 - name : Install project dependencies
7050 working-directory : recursive_verification
7151 run : yarn install --frozen-lockfile
7252
73- - name : Install Nargo
74- uses : noir-lang/noirup@v0.1.4
75- with :
76- toolchain : 1.0.0-beta.15
77-
7853 - name : Compile Noir circuit
7954 working-directory : recursive_verification/circuit
8055 run : nargo compile
8156
57+ - name : Change ownership for nargo files
58+ run : sudo chown -R $(whoami) ~/nargo || true
59+
8260 - name : Compile contract and generate artifacts
8361 working-directory : recursive_verification
84- run : yarn ccc
62+ run : |
63+ ulimit -s unlimited
64+ script -e -c "yarn ccc"
65+ timeout-minutes : 15
8566
8667 - name : Generate proof data
8768 working-directory : recursive_verification
9475 yarn data
9576 timeout-minutes : 30
9677
78+ - name : Start local Aztec network
79+ run : aztec start --local-network &
80+
81+ - name : Wait for local network to be ready
82+ run : |
83+ echo "Waiting for local network to start..."
84+ for i in {1..30}; do
85+ if curl -s http://localhost:8080/status >/dev/null 2>&1; then
86+ echo "Local network is ready!"
87+ break
88+ fi
89+ echo "Waiting... ($i/30)"
90+ sleep 5
91+ done
92+
9793 - name : Run tests
9894 working-directory : recursive_verification
9995 run : yarn test
@@ -108,11 +104,3 @@ jobs:
108104 recursive_verification/tests/**/*.log
109105 recursive_verification/data.json
110106 retention-days : 7
111-
112- - name : Cleanup
113- if : always()
114- run : |
115- echo "Stopping Aztec local network..."
116- pkill -f "aztec" || true
117- docker stop $(docker ps -q) || true
118- docker rm $(docker ps -a -q) || true
0 commit comments