Skip to content

Commit

Permalink
ci: cache cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekhmet committed Nov 22, 2024
1 parent 399d91d commit 852572c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push]

env:
STARKNET_DEVNET_VERSION: 0.2.3

jobs:
lint-build-test:
runs-on: ubuntu-22.04
Expand All @@ -15,8 +18,13 @@ jobs:
cache: "yarn"
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Restore Cargo
uses: actions/cache@v4
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ env.STARKNET_DEVNET_VERSION }}
- name: Install Starknet Devnet
run: cargo install starknet-devnet
run: cargo install starknet-devnet@${{ env.STARKNET_DEVNET_VERSION }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: yarn --frozen-lockfile
Expand Down

0 comments on commit 852572c

Please sign in to comment.