mirror of https://github.com/stjepang/smol
Cache more rustup-installed things
This commit is contained in:
parent
ac3975c1df
commit
fed5af0d45
|
@ -15,6 +15,21 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set current week of the year in environnement
|
||||
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macOS')
|
||||
run: echo "::set-env name=CURRENT_WEEK::$(date +%V)"
|
||||
|
||||
- name: Set current week of the year in environnement
|
||||
if: startsWith(matrix.os, 'windows')
|
||||
run: echo "::set-env name=CURRENT_WEEK::$(Get-Date -UFormat %V)"
|
||||
|
||||
- name: Cache .rustup
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.rustup
|
||||
key: ${{ matrix.os }}-rustup-${{ env.CURRENT_WEEK }}-grcov
|
||||
|
||||
- name: Install latest nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
@ -63,4 +78,4 @@ jobs:
|
|||
uses: coverallsapp/github-action@v1.1.0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
parallel-finished: true
|
||||
parallel-finished: true
|
||||
|
|
Loading…
Reference in New Issue