From 9c832319ff61f9c542f982806ca7e77ca5c49cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Luthi?= Date: Sat, 21 Dec 2024 23:46:46 +0100 Subject: [PATCH] Optimize the GitHub actions Windows runner See https://github.com/actions/setup-dotnet/issues/260#issuecomment-2533613266 and https://github.com/Lombiq/GitHub-Actions/pull/403 --- .github/workflows/continuous-integration.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index f70f126..aaaeb55 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -23,6 +23,11 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: 🏎 Optimize Windows runner + if: matrix.os == 'windows-latest' + run: | + echo "DOTNET_INSTALL_DIR=D:\dotnet" >> $env:GITHUB_ENV + echo "NUGET_PACKAGES=D:\nuget" >> $env:GITHUB_ENV - name: 🧑‍🔧 Install .NET SDK uses: actions/setup-dotnet@v4 - name: ℹī¸ Show .NET info