Cache cargo output

This commit is contained in:
zonyitoo
2020-08-07 00:19:16 +08:00
parent d0c86df74f
commit 902611df7a
+21
View File
@@ -15,6 +15,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --features "aes-pmac-siv local-redir" --verbose
- name: Run tests
@@ -25,6 +32,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --features "aes-pmac-siv openssl-vendored" --verbose
- name: Run tests
@@ -35,6 +49,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build --features "aes-pmac-siv local-redir" --verbose
- name: Run tests