Skip to content

Commit ffc18c7

Browse files
committed
add foundry and forge dep in
ci workflows
1 parent 9d70836 commit ffc18c7

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/ci-turbo-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ jobs:
2626
# precompiled binary isn't found.
2727
- name: Install libusb
2828
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
29+
# Install Foundry for Ethereum contract builds
30+
- name: Install Foundry
31+
uses: foundry-rs/foundry-toolchain@v1
32+
with:
33+
version: v0.3.0
2934
- uses: pnpm/action-setup@v4
3035
name: Install pnpm
3136
with:
3237
run_install: true
38+
- name: Install Forge dependencies
39+
run: cd target_chains/ethereum/contracts && pnpm run install-forge-deps
3340
- name: Cache for Turbo
3441
uses: rharkor/[email protected]
3542
- name: Build

.github/workflows/ci-turbo-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20+
- uses: actions-rust-lang/setup-rust-toolchain@v1
2021
- uses: actions/setup-node@v4
2122
with:
2223
node-version-file: "package.json"
@@ -25,10 +26,17 @@ jobs:
2526
# precompiled binary isn't found.
2627
- name: Install libusb
2728
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
29+
# Install Foundry for Ethereum contract tests
30+
- name: Install Foundry
31+
uses: foundry-rs/foundry-toolchain@v1
32+
with:
33+
version: v0.3.0
2834
- uses: pnpm/action-setup@v4
2935
name: Install pnpm
3036
with:
3137
run_install: true
38+
- name: Install Forge dependencies
39+
run: cd target_chains/ethereum/contracts && pnpm run install-forge-deps
3240
- name: Cache for Turbo
3341
uses: rharkor/[email protected]
3442
- name: Test

.github/workflows/publish-js.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
name: Publish Javascript Packages to NPM
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
13+
- uses: actions-rust-lang/setup-rust-toolchain@v1
1314
- uses: actions/setup-node@v4
1415
with:
1516
node-version-file: "package.json"
@@ -18,10 +19,17 @@ jobs:
1819
# precompiled binary isn't found.
1920
- name: Install libusb
2021
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
22+
# Install Foundry for Ethereum contract builds
23+
- name: Install Foundry
24+
uses: foundry-rs/foundry-toolchain@v1
25+
with:
26+
version: v0.3.0
2127
- uses: pnpm/action-setup@v4
2228
name: Install pnpm
2329
with:
2430
run_install: true
31+
- name: Install Forge dependencies
32+
run: cd target_chains/ethereum/contracts && pnpm run install-forge-deps
2533
- name: Set publishing config
2634
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
2735
env:

0 commit comments

Comments
 (0)