diff options
author | Aleksey Kladov <[email protected]> | 2020-03-16 16:57:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-16 16:57:07 +0000 |
commit | baf10c3f1695879849afc2216333571910f3aa08 (patch) | |
tree | 03edcdfb0404cccd6be9987f911106754d5ede11 /.github/workflows | |
parent | 648df02953a6ebf87a5876668eceba208687e8a7 (diff) |
Cache cargo-audit on CI
closes #3399
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/ci.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ad1c14507..b3137477d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml | |||
@@ -16,9 +16,22 @@ jobs: | |||
16 | CARGO_NET_RETRY: 10 | 16 | CARGO_NET_RETRY: 10 |
17 | 17 | ||
18 | steps: | 18 | steps: |
19 | - name: Install Rust toolchain | ||
20 | uses: actions-rs/toolchain@v1 | ||
21 | with: | ||
22 | toolchain: stable | ||
23 | profile: minimal | ||
24 | override: true | ||
25 | |||
19 | - name: Checkout repository | 26 | - name: Checkout repository |
20 | uses: actions/checkout@v2 | 27 | uses: actions/checkout@v2 |
21 | 28 | ||
29 | - name: Cache cargo | ||
30 | uses: actions/cache@v1 | ||
31 | with: | ||
32 | path: ~/.cargo | ||
33 | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
34 | |||
22 | - run: cargo install cargo-audit | 35 | - run: cargo install cargo-audit |
23 | - run: cargo audit | 36 | - run: cargo audit |
24 | 37 | ||