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:
parent
da15365ee0
commit
b3606ee454
1 changed files with 13 additions and 1 deletions
14
.github/workflows/rust.yml
vendored
14
.github/workflows/rust.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue