Skip to content

Commit ff5902e

Browse files
committed
Use setup-nuget to fix broken nuget in GitHub actions
All Windows builds were failing to download clcache from nuget. This problem also documented in actions/runner-images#3240. Follow their approach to fix the nuget setup.
1 parent 2fdf995 commit ff5902e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ jobs:
300300
- uses: actions/checkout@v2
301301
with:
302302
submodules: recursive
303+
- uses: nuget/setup-nuget@v1
304+
with:
305+
nuget-version: 'latest'
303306
- name: Fetch dependencies
304307
run: |
305308
choco install winflexbison3 strawberryperl
@@ -400,6 +403,9 @@ jobs:
400403
- uses: actions/checkout@v2
401404
with:
402405
submodules: recursive
406+
- uses: nuget/setup-nuget@v1
407+
with:
408+
nuget-version: 'latest'
403409
- name: Fetch dependencies
404410
run: |
405411
choco install winflexbison3

.github/workflows/release-packages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ jobs:
148148
- uses: actions/checkout@v2
149149
with:
150150
submodules: recursive
151+
- uses: nuget/setup-nuget@v1
152+
with:
153+
nuget-version: 'latest'
151154
- name: Fetch dependencies
152155
run: |
153156
choco install winflexbison3

0 commit comments

Comments
 (0)