]> git.lizzy.rs Git - rust.git/commitdiff
Cache cargo-audit on CI
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 16:57:07 +0000 (17:57 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 16 Mar 2020 16:57:07 +0000 (17:57 +0100)
closes #3399

.github/workflows/ci.yaml

index ad1c145078e953d521bd0cdf332a2aa6f3b52264..b3137477d1ef93a21a5d149cda3faa490bb49cf1 100644 (file)
@@ -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