File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,21 @@ jobs:
30
30
with :
31
31
ref : ${{ github.event.pull_request.head.sha }}
32
32
33
- # Install Mono on Ubuntu to run nuget.exe
34
- - name : Install Mono on Ubuntu
33
+ # Prepare ubuntu by installing Mono and handle dotnet installation issues.
34
+ - name : Prepare ubuntu
35
35
if : matrix.os == 'ubuntu'
36
36
run : |
37
+ # Install Mono
37
38
sudo apt-get update
38
39
sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates
39
40
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
40
41
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
41
42
sudo apt-get update
42
43
sudo apt-get install -y mono-complete
44
+ # Fixes dotnet installation issues, see https://github.com/jfrog/jfrog-cli/pull/2808 for more details.
45
+ echo "DOTNET_INSTALL_DIR=/usr/share/dotnet" >> $GITHUB_ENV
46
+ sudo mkdir -p /usr/share/dotnet
47
+ sudo chmod 777 /usr/share/dotnet
43
48
44
49
- name : Install .NET
45
50
uses : actions/setup-dotnet@v4
You can’t perform that action at this time.
0 commit comments