move cache up to the front

This commit is contained in:
Michael Zhang 2021-03-27 02:20:48 -05:00
parent 41c05ec38a
commit 18be04ff6b
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -20,11 +20,30 @@ jobs:
with: with:
toolchain: stable toolchain: stable
# Retrieve the cache if there is one
- uses: actions/cache@v2
id: cache
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# Install shit
- name: mdbook - name: mdbook
uses: peaceiris/actions-mdbook@v1 uses: peaceiris/actions-mdbook@v1
with: with:
mdbook-version: 'latest' mdbook-version: 'latest'
- name: install-cargo-deb
run: |
cargo install mdbook --version 0.4.7
cargo install cargo-deb --version 1.29.1
# Run tests # Run tests
- name: run tests - name: run tests
@ -52,22 +71,10 @@ jobs:
- name: build-deb - name: build-deb
run: | run: |
cargo install cargo-deb
cargo deb cargo deb
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: panorama.deb name: panorama.deb
path: target/debian/panorama*.deb path: target/debian/panorama*.deb
# Cache massively
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# vim: set sw=2 et : # vim: set sw=2 et :