Skip to content

Commit

Permalink
ci: Didnt cache everything that should have been cached
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ishere committed Feb 13, 2024
1 parent 400c7f0 commit 2c37a28
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/cargo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ jobs:

- uses: actions/cache@v4
with:
path: target/
path:
- target/
- $CARGO_HOME/.crates.toml
- $CARGO_HOME/.crates2.json
- $CARGO_HOME/bin/
- $CARGO_HOME/registry/index/
- $CARGO_HOME/registry/cache/
- $CARGO_HOME/git/db/

key: cargo-build-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-build-${{ hashFiles('Cargo.lock') }}
Expand All @@ -38,3 +46,6 @@ jobs:
- name: build
run: cargo build --release ${{ matrix.target }} --keep-going --verbose

- name: Debug $CARGO_HOME
run: echo $CARGO_HOME

0 comments on commit 2c37a28

Please sign in to comment.