Cache more rustup-installed things

This commit is contained in:
leo-lb 2020-05-01 18:26:13 +02:00 committed by GitHub
parent ac3975c1df
commit fed5af0d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -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