forked from keep-starknet-strange/zaun
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1005 Bytes
/
rust-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: Task - Build Rust
on:
workflow_dispatch:
workflow_call:
jobs:
rust_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
- run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install Ganache
run: |
npm install -g [email protected]
ganache --version
- name: Install Solc
run: |
pip install solc-select
solc-select install 0.8.19
solc-select use 0.8.19
solc --version
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Build the project
run: |
cargo build --release --workspace