Skip to content

Commit

Permalink
feat: update CI/CD workflow for Rust toolchain installation and caching
Browse files Browse the repository at this point in the history
  • Loading branch information
3th-Enjay committed Feb 28, 2025
1 parent 0ead4f4 commit c825a29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
~/.cargo/git
target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
targets: wasm32-unknown-unknown
profile: minimal
run: |
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
rustup default stable
- name: Cache snforge
uses: actions/cache@v4
Expand All @@ -56,7 +57,8 @@ jobs:
cargo install --locked --git https://github.com/foundry-rs/starknet-foundry \
--tag v0.33.0 \
--bin snforge \
--features=rust-serde
--features=rust-serde=1.0.130 \
snforge@0.33.0
fi
echo "Installed snforge version: $(snforge --version)"
Expand Down
1 change: 1 addition & 0 deletions starknet-foundry
Submodule starknet-foundry added at 221b1d

0 comments on commit c825a29

Please sign in to comment.