File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,20 +30,18 @@ jobs:
30
30
with :
31
31
ref : ${{ github.event.pull_request.head.sha }}
32
32
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
37
35
if : matrix.os == 'ubuntu'
38
36
run : |
39
- # Install Mono
40
37
sudo apt-get update
41
38
sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates
42
39
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
43
40
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
44
41
sudo apt-get update
45
42
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
47
45
sudo mkdir -p /usr/share/dotnet
48
46
sudo chmod 777 /usr/share/dotnet
49
47
You can’t perform that action at this time.
0 commit comments