move cache up to the front
This commit is contained in:
parent
41c05ec38a
commit
18be04ff6b
1 changed files with 19 additions and 12 deletions
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
|
@ -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 :
|
||||||
|
|
Loading…
Reference in a new issue