Simplifying rust cache

This commit is contained in:
Ryan Summers 2021-07-19 14:07:09 +02:00
parent 5cc1c68d50
commit a263835dd2

View File

@ -85,6 +85,7 @@ jobs:
args: --package dsp --target=x86_64-unknown-linux-gnu args: --package dsp --target=x86_64-unknown-linux-gnu
doc: doc:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -93,6 +94,12 @@ jobs:
with: with:
ruby-version: 2.7.x ruby-version: 2.7.x
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: thumbv7em-none-eabihf
override: true
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: docs/vendor/bundle path: docs/vendor/bundle
@ -100,30 +107,15 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gems- ${{ runner.os }}-gems-
- uses: actions/cache@v2 - uses: Swatinem/rust-cache@v1
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
- name: Install Deadlinks - name: Install Deadlinks
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: install command: install
args: | args: |
--root cargo-cache
cargo-deadlinks cargo-deadlinks
- name: Update Path
run: echo "./cargo-cache" >> $GITHUB_PATH
- name: cargo doc - name: cargo doc
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: