File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -330,10 +330,26 @@ jobs:
330
330
with :
331
331
ref : ${{ github.event.pull_request.head.sha }}
332
332
333
+ # Prepare ubuntu by installing Mono and handle dotnet installation issues.
334
+ - name : Prepare ubuntu
335
+ if : matrix.os == 'ubuntu-latest'
336
+ run : |
337
+ # Install Mono
338
+ sudo apt-get update
339
+ sudo apt-get install -y apt-transport-https dirmngr gnupg ca-certificates
340
+ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
341
+ echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
342
+ sudo apt-get update
343
+ sudo apt-get install -y mono-complete
344
+ # Fixes dotnet installation issues, see https://github.com/jfrog/jfrog-cli/pull/2808 for more details.
345
+ echo "DOTNET_INSTALL_DIR=/usr/share/dotnet" >> $GITHUB_ENV
346
+ sudo mkdir -p /usr/share/dotnet
347
+ sudo chmod 777 /usr/share/dotnet
348
+
333
349
- name : Install dotnet
334
350
uses : actions/setup-dotnet@v4
335
351
with :
336
- dotnet-version : " 3 .x"
352
+ dotnet-version : " 6 .x"
337
353
338
354
- name : Install NuGet
339
355
uses : nuget/setup-nuget@v2
You can’t perform that action at this time.
0 commit comments