Skip to content

Commit f6730eb

Browse files
authored
Merge pull request #29 from AztecProtocol/jc/update-ci-workflows-nightly
Update all examples and CI to Aztec v4.0.0-nightly.20260211
2 parents aee41df + fd7b846 commit f6730eb

52 files changed

Lines changed: 6558 additions & 6323 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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
@@ -32,39 +32,34 @@ jobs:
3232
- name: Enable Corepack for Yarn
3333
run: corepack enable
3434

35-
- name: Set up Docker
36-
uses: docker/setup-buildx-action@v3
35+
- name: Install Foundry
36+
uses: foundry-rs/foundry-toolchain@v1
3737

3838
- name: Install Aztec CLI
3939
run: |
40-
curl -s https://install.aztec.network > tmp.sh
41-
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
42-
rm tmp.sh
40+
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
41+
curl -sL $INSTALL_URL > tmp.sh
42+
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"
4343
4444
- name: Update path
45-
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH
46-
47-
- name: Set Aztec version and start local network
4845
run: |
49-
aztec-up ${{ env.AZTEC_VERSION }}
50-
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
51-
aztec start --local-network &
46+
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
47+
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
48+
echo "$HOME/.aztec/bin" >> $GITHUB_PATH
49+
50+
- name: Start local Aztec network
51+
run: aztec start --local-network &
5252

5353
- name: Wait for local network to be ready
5454
run: |
5555
echo "Waiting for local network to start..."
56-
MAX_RETRIES=60
57-
for i in $(seq 1 $MAX_RETRIES); do
56+
for i in {1..30}; do
5857
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
59-
echo "Local network is ready!"
58+
echo "Local network is ready!"
6059
break
6160
fi
62-
if [ $i -eq $MAX_RETRIES ]; then
63-
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
64-
exit 1
65-
fi
66-
echo "Waiting... ($i/$MAX_RETRIES)"
67-
sleep 2
61+
echo "Waiting... ($i/30)"
62+
sleep 5
6863
done
6964
7065
- name: Install project dependencies
@@ -73,7 +68,9 @@ jobs:
7368

7469
- name: Compile contract and generate artifacts
7570
working-directory: note-send-proof
76-
run: yarn ccc
71+
run: |
72+
ulimit -s unlimited
73+
script -e -c "yarn ccc"
7774
7875
- name: Generate note hash data
7976
working-directory: note-send-proof
@@ -98,11 +95,3 @@ jobs:
9895
note-send-proof/tests/**/*.log
9996
note-send-proof/data.json
10097
retention-days: 7
101-
102-
- name: Cleanup
103-
if: always()
104-
run: |
105-
echo "Stopping Aztec local network..."
106-
pkill -f "aztec" || true
107-
docker stop $(docker ps -q) || true
108-
docker rm $(docker ps -a -q) || true

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

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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
@@ -34,39 +34,34 @@ jobs:
3434
with:
3535
bun-version: 1.1.36
3636

37-
- name: Set up Docker
38-
uses: docker/setup-buildx-action@v3
37+
- name: Install Foundry
38+
uses: foundry-rs/foundry-toolchain@v1
3939

4040
- name: Install Aztec CLI
4141
run: |
42-
curl -s https://install.aztec.network > tmp.sh
43-
VERSION=${{ env.AZTEC_VERSION }} NON_INTERACTIVE=1 bash tmp.sh
44-
rm tmp.sh
42+
INSTALL_URL="https://install.aztec.network/${{ env.AZTEC_VERSION }}/"
43+
curl -sL $INSTALL_URL > tmp.sh
44+
VERSION=${{ env.AZTEC_VERSION }} bash tmp.sh <<< yes "yes"
4545
4646
- name: Update path
47-
run: echo "$HOME/.aztec/bin" >> $GITHUB_PATH
48-
49-
- name: Set Aztec version and start local network
5047
run: |
51-
aztec-up ${{ env.AZTEC_VERSION }}
52-
docker tag aztecprotocol/aztec:${{ env.AZTEC_VERSION }} aztecprotocol/aztec:latest
53-
aztec start --local-network &
48+
echo "$HOME/.aztec/current/bin" >> $GITHUB_PATH
49+
echo "$HOME/.aztec/current/node_modules/.bin" >> $GITHUB_PATH
50+
echo "$HOME/.aztec/bin" >> $GITHUB_PATH
51+
52+
- name: Start local Aztec network
53+
run: aztec start --local-network &
5454

5555
- name: Wait for local network to be ready
5656
run: |
5757
echo "Waiting for local network to start..."
58-
MAX_RETRIES=60
59-
for i in $(seq 1 $MAX_RETRIES); do
58+
for i in {1..30}; do
6059
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
61-
echo "Local network is ready!"
60+
echo "Local network is ready!"
6261
break
6362
fi
64-
if [ $i -eq $MAX_RETRIES ]; then
65-
echo "❌ Local network failed to start after $MAX_RETRIES attempts"
66-
exit 1
67-
fi
68-
echo "Waiting... ($i/$MAX_RETRIES)"
69-
sleep 2
63+
echo "Waiting... ($i/30)"
64+
sleep 5
7065
done
7166
7267
- name: Install project dependencies
@@ -75,14 +70,17 @@ jobs:
7570

7671
- name: Run Noir unit tests
7772
working-directory: prediction-market
78-
run: aztec test
73+
run: |
74+
ulimit -s unlimited
75+
script -e -c "aztec test"
7976
timeout-minutes: 10
8077

8178
- name: Compile contract and generate artifacts
8279
working-directory: prediction-market
8380
run: |
84-
aztec compile
85-
aztec codegen target -o artifacts
81+
ulimit -s unlimited
82+
script -e -c "aztec compile"
83+
script -e -c "aztec codegen target -o artifacts"
8684
8785
- name: Run end-to-end tests
8886
working-directory: prediction-market
@@ -97,11 +95,3 @@ jobs:
9795
path: |
9896
prediction-market/tests/**/*.log
9997
retention-days: 7
100-
101-
- name: Cleanup
102-
if: always()
103-
run: |
104-
echo "Stopping Aztec local network..."
105-
pkill -f "aztec" || true
106-
docker stop $(docker ps -q) || true
107-
docker rm $(docker ps -a -q) || true

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

Lines changed: 31 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
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
@@ -94,6 +75,21 @@ jobs:
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

.github/workflows/test-wallet-webapp-tests.yml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Test Wallet Webapp Tests
1818
runs-on: ubuntu-latest
1919
env:
20-
AZTEC_VERSION: 3.0.0-devnet.6-patch.1
20+
AZTEC_VERSION: 4.0.0-nightly.20260211
2121

2222
steps:
2323
- name: Checkout repository
@@ -31,39 +31,34 @@ jobs:
3131
- name: Enable Corepack
3232
run: corepack enable
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 &
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
48+
49+
- name: Start local Aztec network
50+
run: aztec start --local-network &
5151

5252
- name: Wait for local network to be ready
5353
run: |
5454
echo "Waiting for local network to start..."
55-
MAX_RETRIES=60
56-
for i in $(seq 1 $MAX_RETRIES); do
55+
for i in {1..30}; do
5756
if curl -s http://localhost:8080/status >/dev/null 2>&1; then
58-
echo "Local network is ready!"
57+
echo "Local network is ready!"
5958
break
6059
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
60+
echo "Waiting... ($i/30)"
61+
sleep 5
6762
done
6863
6964
- name: Install project dependencies
@@ -87,11 +82,3 @@ jobs:
8782
test-wallet-webapp/dist/
8883
test-wallet-webapp/node_modules/.vite/
8984
retention-days: 7
90-
91-
- name: Cleanup
92-
if: always()
93-
run: |
94-
echo "Stopping Aztec local network..."
95-
pkill -f "aztec" || true
96-
docker stop $(docker ps -q) || true
97-
docker rm $(docker ps -a -q) || true

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ aztec-examples/
5252
bash -i <(curl -s https://install.aztec.network)
5353

5454
# Set specific version (examples may require different versions)
55-
aztec-up 3.0.0-devnet.6-patch.1 # For recursive_verification
55+
aztec-up 4.0.0-devnet.1-patch.0 # For recursive_verification
5656
```
5757

5858
### Building Contracts
@@ -261,7 +261,7 @@ easy_private_state = { git = "https://github.com/AztecProtocol/aztec-packages/",
261261

262262
**Version Compatibility**: All examples use the same Aztec version:
263263

264-
- All examples: v3.0.0-devnet.6-patch.1
264+
- All examples: v4.0.0-devnet.1-patch.0
265265

266266
### JavaScript/TypeScript Dependencies
267267

0 commit comments

Comments
 (0)