1
0
Fork 0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-11-13 11:34:18 -05:00

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

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