Cache build artifacts in workflow

This commit is contained in:
lcdr
2020-07-10 11:16:44 +02:00
parent daa9957361
commit 6a3e57ba05
+14 -4
View File
@@ -18,12 +18,22 @@ jobs:
override: true
components: rustfmt, clippy
- name: Run cargo check
uses: actions-rs/cargo@v1
- name: Cache build
uses: actions/cache@v2
with:
command: check
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test
- name: Compile
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run
- name: Test
uses: actions-rs/cargo@v1
with:
command: test