Cache build directory in GitHub Actions (#107)

This commit is contained in:
Ulyssa 2023-05-19 18:25:09 -07:00
parent 2899d4f45a
commit 17c87a617e
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64

View file

@ -49,6 +49,11 @@ jobs:
with: with:
path: ~/.cargo/registry path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting - name: Check formatting
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: