From 9a4fb10fc7b8339ef637ffe9e3a56286471024cf Mon Sep 17 00:00:00 2001 From: delarea Date: Mon, 30 Dec 2024 12:54:15 +0200 Subject: [PATCH] Test workaround --- .github/workflows/nugetTests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nugetTests.yml b/.github/workflows/nugetTests.yml index 5c732f593..f56dcfe01 100644 --- a/.github/workflows/nugetTests.yml +++ b/.github/workflows/nugetTests.yml @@ -30,20 +30,18 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - # Ubuntu agents require Mono to run nuget.exe. - # Also, there is an issue with the .NET setup action that requires setting permissions for the dotnet home directory. - # Therefore, we manually set permissions until the issue is resolved. (https://github.com/actions/setup-dotnet/issues/565) - - name: Prepare Ubuntu agent + # Install Mono on Ubuntu to run nuget.exe + - name: Install Mono on Ubuntu if: matrix.os == 'ubuntu' run: | - # Install Mono sudo apt-get update sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt-get update sudo apt-get install -y mono-complete - # Set permissions for the dotnet home directory + # Fixes https://github.com/actions/setup-dotnet/issues/554 + echo "DOTNET_INSTALL_DIR="/usr/share/dotnet" >> $GITHUB_ENV sudo mkdir -p /usr/share/dotnet sudo chmod 777 /usr/share/dotnet