Skip to content

Commit

Permalink
Cache everything in ~/.cargo
Browse files Browse the repository at this point in the history
This may fix an issue where `cargo install wasm-bindgen-cli` fails due to a
conflicting binary existing in ~/.cargo/bin but other cargo files which track
the crate <-> binary association not being present (because they were not
cached).
  • Loading branch information
robertknight committed Mar 18, 2024
1 parent 82054c1 commit fb5db6a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup rust
- name: Install Rust wasm toolchain
run: rustup target add wasm32-unknown-unknown
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cargo/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install wasm-bindgen
Expand Down

0 comments on commit fb5db6a

Please sign in to comment.