From baf10c3f1695879849afc2216333571910f3aa08 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 16 Mar 2020 17:57:07 +0100 Subject: Cache cargo-audit on CI closes #3399 --- .github/workflows/ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.github/workflows') 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: CARGO_NET_RETRY: 10 steps: + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + - name: Checkout repository 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 audit -- cgit v1.2.3