Do everything in one command

To avoid file in use error
This commit is contained in:
Thomas Suckow
2022-03-02 21:23:19 -08:00
committed by GitHub
parent 3ce9965c19
commit f5ef2d0ba2
+1 -10
View File
@@ -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