Do everything in one command
To avoid file in use error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user