Cache chocolatey packages to reduce flakiness (#180)
This commit is contained in:
parent
fee15a96af
commit
ac9f141b07
1 changed files with 6 additions and 0 deletions
6
.github/workflows/CI.yml
vendored
6
.github/workflows/CI.yml
vendored
|
@ -9,6 +9,12 @@ jobs:
|
||||||
os: [ubuntu-18.04, macOS-latest, windows-latest]
|
os: [ubuntu-18.04, macOS-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- if: runner.os == 'Windows'
|
||||||
|
uses: actions/cache@v1
|
||||||
|
with:
|
||||||
|
path: ${{env.TEMP}}/chocolatey
|
||||||
|
key: ${{matrix.os}}-chocolatey-${{github.job_id}}
|
||||||
|
restore-keys: ${{matrix.os}}-chocolatey-
|
||||||
- if: runner.os == 'Linux'
|
- if: runner.os == 'Linux'
|
||||||
# azure ubuntu repo can be flaky so add an alternate source
|
# azure ubuntu repo can be flaky so add an alternate source
|
||||||
run: sed -e 's/azure.archive.ubuntu.com/us.archive.ubuntu.com/g' -e t -e d /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/nonazure.list
|
run: sed -e 's/azure.archive.ubuntu.com/us.archive.ubuntu.com/g' -e t -e d /etc/apt/sources.list | sudo tee /etc/apt/sources.list.d/nonazure.list
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue