From a263835dd24e63e681715ba3af3926bc1e1940a5 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 19 Jul 2021 14:07:09 +0200 Subject: [PATCH] Simplifying rust cache --- .github/workflows/ci.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 760c874..f9f75c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,7 @@ jobs: args: --package dsp --target=x86_64-unknown-linux-gnu doc: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -93,6 +94,12 @@ jobs: with: ruby-version: 2.7.x + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: thumbv7em-none-eabihf + override: true + - uses: actions/cache@v2 with: path: docs/vendor/bundle @@ -100,30 +107,15 @@ jobs: restore-keys: | ${{ runner.os }}-gems- - - uses: actions/cache@v2 - with: - path: cargo-cache - key: ${{runner.os}}-cargo-${{ hashFiles('cargo-cache/bins/*') }} - restore-keys: | - ${{runner.os}}-cargo- - - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: thumbv7em-none-eabihf - override: true + - uses: Swatinem/rust-cache@v1 - name: Install Deadlinks uses: actions-rs/cargo@v1 with: command: install args: | - --root cargo-cache cargo-deadlinks - - name: Update Path - run: echo "./cargo-cache" >> $GITHUB_PATH - - name: cargo doc uses: actions-rs/cargo@v1 with: