Skip to content

Commit

Permalink
Download cargo dependencies only if we need to build
Browse files Browse the repository at this point in the history
  • Loading branch information
bitdivine committed Aug 1, 2024
1 parent e0fb729 commit ff56d78
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/binding-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,22 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
- name: Cache backend wasm
uses: actions/cache@v4
id: backend-wasm-cache
with:
path: |
target/wasm32-unknown-unknown/release/backend.wasm
key: ${{ runner.os }}-backend-wasm-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml', 'src/backend/**/*', 'src/shared/**/*') }}
- name: Cache cargo dependencies
if: steps.backend-wasm-cache.outputs.cache-hit != 'true'
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-backend-tests-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }}
- uses: actions/cache@v4
id: backend-wasm-cache
with:
path: |
target/wasm32-unknown-unknown/release/backend.wasm
key: ${{ runner.os }}-backend-wasm-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml', 'src/backend/**/*', 'src/shared/**/*') }}
- name: Prepare
uses: ./.github/actions/prepare
- name: Install dfx
Expand Down

0 comments on commit ff56d78

Please sign in to comment.