Skip to content

Commit d7d326d

Browse files
critesjoshclaude
andcommitted
Update CI workflows to match aztec-starter pattern with nightly version
Align all workflow files with the aztec-starter local-network.yaml pattern: - Use versioned install URL and new Aztec CLI install method - Add Foundry toolchain, remove Docker setup - Update PATH to include current/bin and current/node_modules/.bin - Simplify network start (remove aztec-up/docker tag steps) - Use script -e -c wrapper for aztec commands - Update version to 4.0.0-nightly.20260211 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aee41df commit d7d326d

7 files changed

Lines changed: 76 additions & 125 deletions

File tree

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

Lines changed: 17 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,7 @@ jobs:
7368

7469
- name: Compile contract and generate artifacts
7570
working-directory: note-send-proof
76-
run: yarn ccc
71+
run: script -e -c "yarn ccc"
7772

7873
- name: Generate note hash data
7974
working-directory: note-send-proof
@@ -98,11 +93,3 @@ jobs:
9893
note-send-proof/tests/**/*.log
9994
note-send-proof/data.json
10095
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: 19 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,14 @@ jobs:
7570

7671
- name: Run Noir unit tests
7772
working-directory: prediction-market
78-
run: aztec test
73+
run: script -e -c "aztec test"
7974
timeout-minutes: 10
8075

8176
- name: Compile contract and generate artifacts
8277
working-directory: prediction-market
8378
run: |
84-
aztec compile
85-
aztec codegen target -o artifacts
79+
script -e -c "aztec compile"
80+
script -e -c "aztec codegen target -o artifacts"
8681
8782
- name: Run end-to-end tests
8883
working-directory: prediction-market
@@ -97,11 +92,3 @@ jobs:
9792
path: |
9893
prediction-market/tests/**/*.log
9994
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: 20 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
@@ -31,39 +31,34 @@ 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 &
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
@@ -79,9 +74,12 @@ jobs:
7974
working-directory: recursive_verification/circuit
8075
run: nargo compile
8176

77+
- name: Change ownership for nargo files
78+
run: sudo chown -R $(whoami) ~/nargo && sudo chown -R $(whoami) ~/nargo/github.com
79+
8280
- name: Compile contract and generate artifacts
8381
working-directory: recursive_verification
84-
run: yarn ccc
82+
run: script -e -c "yarn ccc"
8583

8684
- name: Generate proof data
8785
working-directory: recursive_verification
@@ -108,11 +106,3 @@ jobs:
108106
recursive_verification/tests/**/*.log
109107
recursive_verification/data.json
110108
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

custom-note/Nargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ compiler_version = ">=1.0.0"
55
type = "contract"
66

77
[dependencies]
8-
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v3.0.0-devnet.6-patch.1", directory = "aztec" }
8+
aztec = { git = "https://github.com/AztecProtocol/aztec-nr/", tag = "v4.0.0-devnet.1-patch.0", directory = "aztec" }

custom-note/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ CustomNote.view_custom_notes(owner_address)
6565

6666
## Dependencies
6767

68-
- Aztec v3.0.0-devnet.6-patch.1
68+
- Aztec v4.0.0-devnet.1-patch.0
6969

7070
To set this version:
7171

7272
```bash
73-
aztec-up 3.0.0-devnet.6-patch.1
73+
aztec-up 4.0.0-devnet.1-patch.0
7474
```
7575

7676
## Project Structure

custom-note/src/custom_note.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use aztec::{
22
macros::notes::note,
33
oracle::random::random,
4-
protocol_types::{address::AztecAddress, traits::{Deserialize, Packable, Serialize}},
4+
protocol::{address::AztecAddress, traits::{Deserialize, Packable, Serialize}},
55
};
66

77
#[derive(Eq, Serialize, Deserialize, Packable)]

0 commit comments

Comments
 (0)