Skip to content

Commit

Permalink
Cache chocolatey packages to reduce flakiness (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed May 8, 2020
1 parent fee15a9 commit ac9f141
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
os: [ubuntu-18.04, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
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'
# 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
Expand Down

0 comments on commit ac9f141

Please sign in to comment.