From f5ef2d0ba25c06aa0a59f4eccbd7720e4afb0f1c Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Wed, 2 Mar 2022 21:23:19 -0800 Subject: [PATCH] Do everything in one command To avoid file in use error --- .github/workflows/freebsd.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 6d4b1d67f..8cf041a5e 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -46,9 +46,6 @@ jobs: curl -L https://github.com/Thefrank/dotnet-freebsd-crossbuild/releases/download/${RVERSION}/Microsoft.NETCore.App.Runtime.freebsd-x64.${VERSION}.nupkg -o /var/tmp/nuget/Microsoft.NETCore.App.Runtime.freebsd-x64.${VERSION}.nupkg /var/tmp/dn/dotnet nuget add source /var/tmp/nuget/ export DOTNET_CLI_TELEMETRY_OPTOUT=1 - echo Nuget Restore - /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln - /var/tmp/dn/dotnet build-server shutdown /var/tmp/dn/dotnet publish -c Release --runtime=freebsd-x64 -o publish Duplicati.sln - name: Save Artifacts uses: actions/upload-artifact@v2 @@ -94,11 +91,5 @@ jobs: curl -L https://github.com/Thefrank/dotnet-freebsd-crossbuild/releases/download/${RVERSION}/Microsoft.NETCore.App.Runtime.freebsd-x64.${VERSION}.nupkg -o /var/tmp/nuget/Microsoft.NETCore.App.Runtime.freebsd-x64.${VERSION}.nupkg /var/tmp/dn/dotnet nuget add source /var/tmp/nuget/ export DOTNET_CLI_TELEMETRY_OPTOUT=1 - echo Nuget Restore - /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln - /var/tmp/dn/dotnet build-server shutdown - echo Building - /var/tmp/dn/dotnet build --no-restore Duplicati.sln - /var/tmp/dn/dotnet build-server shutdown echo Testing - /var/tmp/dn/dotnet test --no-build --verbosity normal Duplicati.sln + /var/tmp/dn/dotnet test --verbosity normal Duplicati.sln