Skip to content

Commit 8d4154c

Browse files
committed
Improve cache restoration on Windows
See actions/cache#752 (comment)
1 parent 7be4565 commit 8d4154c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ jobs:
2727
- name: 🏎 Optimize Windows runner
2828
if: matrix.os == 'windows-latest'
2929
run: |
30+
# extremely slow Network/Disk IO on Windows agent compared to Ubuntu/Mac
31+
# https://github.com/actions/setup-dotnet/issues/260#issuecomment-2533613266
3032
echo "DOTNET_INSTALL_DIR=D:\dotnet" >> $env:GITHUB_ENV
3133
echo "NUGET_PACKAGES=D:\nuget" >> $env:GITHUB_ENV
34+
# Cache restoration is orders of magnitude slower on Windows compared to Linux
35+
# https://github.com/actions/cache/issues/752#issuecomment-4267871236
36+
echo "ACTIONS_CACHE_PREFER_BSD_TAR_ON_WINDOWS=true" >> $env:GITHUB_ENV
3237
- name: 🧑‍🔧 Install .NET SDK
3338
uses: actions/setup-dotnet@v5
3439
- name: ℹ️ Show .NET info

0 commit comments

Comments
 (0)