From db30c5df85aaee9fe40bd4a1d76cf25f476813f1 Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Thu, 3 Mar 2022 22:11:17 -0800 Subject: [PATCH] Try to get freebsd to play nice --- .github/workflows/freebsd.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index c5f13b94f..bac0b85e9 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -30,6 +30,8 @@ jobs: whoami env freebsd-version + + export DOTNET_CLI_TELEMETRY_OPTOUT=1 BUILD_DIR=`pwd` cd /var/tmp mkdir dn @@ -44,11 +46,14 @@ jobs: curl -L https://github.com/Thefrank/dotnet-freebsd-crossbuild/releases/download/${RVERSION}/Microsoft.NETCore.App.Host.freebsd-x64.${VERSION}.nupkg -o /var/tmp/nuget/Microsoft.NETCore.App.Host.freebsd-x64.${VERSION}.nupkg 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 + + cp -R `pwd` /var/tmp/build + cd /var/tmp/build + echo Restore /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln echo Publish - /var/tmp/dn/dotnet publish -p:BaseIntermediateOutputPath=/var/tmp/obj/ -c Release --runtime=freebsd-x64 -o publish Duplicati.sln + /var/tmp/dn/dotnet publish -c Release --runtime=freebsd-x64 -o ${BUILD_DIR}/publish Duplicati.sln - name: Save Artifacts uses: actions/upload-artifact@v2 with: @@ -78,6 +83,8 @@ jobs: whoami env freebsd-version + + export DOTNET_CLI_TELEMETRY_OPTOUT=1 BUILD_DIR=`pwd` cd /var/tmp mkdir dn @@ -92,8 +99,11 @@ jobs: curl -L https://github.com/Thefrank/dotnet-freebsd-crossbuild/releases/download/${RVERSION}/Microsoft.NETCore.App.Host.freebsd-x64.${VERSION}.nupkg -o /var/tmp/nuget/Microsoft.NETCore.App.Host.freebsd-x64.${VERSION}.nupkg 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 + + cp -R `pwd` /var/tmp/build + cd /var/tmp/build + echo Restore /var/tmp/dn/dotnet restore --runtime=freebsd-x64 Duplicati.sln echo Testing - /var/tmp/dn/dotnet test -p:BaseIntermediateOutputPath=/var/tmp/obj/ --runtime=freebsd-x64 --verbosity normal Duplicati.sln + /var/tmp/dn/dotnet test --runtime=freebsd-x64 --verbosity normal Duplicati.sln