cache the oxide targets

This will cache the oxide related build files to hopefully minimize the
amount of Rust compiling.
This commit is contained in:
Robin Malfait 2023-01-20 19:40:21 +01:00
parent 42136e94ce
commit d3887af7fc
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -46,7 +46,19 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('./oxide/**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# Cache the `oxide` Rust build
- name: Cache oxide build
uses: actions/cache@v3
with:
path: |
./oxide/crates/target
./oxide/crates/node/target
./oxide/crates/node/*.node
./oxide/crates/node/index.js
./oxide/crates/node/index.d.ts
key: ${{ runner.os }}-cargo-${{ hashFiles('./oxide/crates/**/*') }}
- name: Install dependencies
run: npm install