Skip to content

Commit 9a4fb10

Browse files
committed
Test workaround
1 parent 4ed95f5 commit 9a4fb10

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/nugetTests.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,18 @@ jobs:
3030
with:
3131
ref: ${{ github.event.pull_request.head.sha }}
3232

33-
# Ubuntu agents require Mono to run nuget.exe.
34-
# Also, there is an issue with the .NET setup action that requires setting permissions for the dotnet home directory.
35-
# Therefore, we manually set permissions until the issue is resolved. (https://github.com/actions/setup-dotnet/issues/565)
36-
- name: Prepare Ubuntu agent
33+
# Install Mono on Ubuntu to run nuget.exe
34+
- name: Install Mono on Ubuntu
3735
if: matrix.os == 'ubuntu'
3836
run: |
39-
# Install Mono
4037
sudo apt-get update
4138
sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates
4239
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
4340
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
4441
sudo apt-get update
4542
sudo apt-get install -y mono-complete
46-
# Set permissions for the dotnet home directory
43+
# Fixes https://github.com/actions/setup-dotnet/issues/554
44+
echo "DOTNET_INSTALL_DIR="/usr/share/dotnet" >> $GITHUB_ENV
4745
sudo mkdir -p /usr/share/dotnet
4846
sudo chmod 777 /usr/share/dotnet
4947

0 commit comments

Comments
 (0)