From a63504b8fe7bb335fe7c2344fecca4336df46bab Mon Sep 17 00:00:00 2001 From: Tomasz Rejowski <34059895+Arcticae@users.noreply.github.com> Date: Wed, 19 Jul 2023 10:01:35 +0200 Subject: [PATCH] CI Caching (#201) Closes #142 Closes #112 (other failures seem irrelevant) --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c304bb9ee..4f46bc9368 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,10 @@ jobs: submodules: true - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f + with: + workspaces: | + starknet-foundry + cairo - uses: software-mansion/setup-scarb@v1.0.0 with: scarb-version: ${{ env.SCARB_VERSION }} @@ -37,6 +41,9 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f + with: + workspaces: | + starknet-foundry - uses: actions/setup-python@v4 with: python-version: '3.9' @@ -66,6 +73,10 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f + with: + workspaces: | + starknet-foundry + cairo - name: Check forge formatting run: cargo fmt --manifest-path ./starknet-foundry/Cargo.toml --check -p forge - name: Check cast formatting @@ -88,5 +99,9 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@dd05243424bd5c0e585e4b55eb2d7615cdd32f1f + with: + workspaces: | + starknet-foundry + cairo - run: cargo lint working-directory: ./starknet-foundry