Add lots of caching to github build

This commit is contained in:
Tom Parker-Shemilt 2021-05-05 22:04:07 +01:00
parent da15365ee0
commit b3606ee454
1 changed files with 13 additions and 1 deletions

View File

@ -11,10 +11,22 @@ env:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions/cache@v2
with:
path: results/results.yaml
key: results-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('README.md') }}
restore-keys: |
results-${{ hashFiles('Cargo.lock') }}
results-
- name: Build
run: cargo run