Cache cargo-audit on CI

closes #3399
This commit is contained in:
Aleksey Kladov 2020-03-16 17:57:07 +01:00
parent 648df02953
commit baf10c3f16

View file

@ -16,9 +16,22 @@ jobs:
CARGO_NET_RETRY: 10 CARGO_NET_RETRY: 10
steps: steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo install cargo-audit - run: cargo install cargo-audit
- run: cargo audit - run: cargo audit