mirror of
https://github.com/Radarr/Radarr
synced 2024-12-23 08:22:39 +00:00
@cosmetic Staged builds & upload artifacts.
This commit is contained in:
parent
7537cef93c
commit
8a674181be
2 changed files with 71 additions and 11 deletions
|
@ -7,12 +7,31 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
|
- run:
|
||||||
|
name: Prepare Build
|
||||||
|
command: ./build.sh PrepareBuild
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: ./build.sh
|
command: ./build.sh Build
|
||||||
- run: mkdir _tests/reports
|
- run:
|
||||||
|
name: Gulp
|
||||||
|
command: ./build.sh Gulp
|
||||||
|
- run:
|
||||||
|
name: Package
|
||||||
|
command: ./build.sh Package
|
||||||
|
- run:
|
||||||
|
name: Preparing Tests
|
||||||
|
command: mkdir _tests/reports
|
||||||
- run:
|
- run:
|
||||||
name: Testing
|
name: Testing
|
||||||
command: ./test.sh Linux Unit
|
command: ./test.sh Linux Unit
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: _tests/reports/
|
path: _tests/reports/
|
||||||
|
- store_artifacts:
|
||||||
|
path: _output
|
||||||
|
- store_artifacts:
|
||||||
|
path: _output_mono
|
||||||
|
- store_artifacts:
|
||||||
|
path: _output_osx
|
||||||
|
- store_artifacts:
|
||||||
|
path: _output_osx_app
|
||||||
|
|
45
build.sh
45
build.sh
|
@ -69,11 +69,21 @@ BuildWithMSBuild()
|
||||||
CheckExitCode MSBuild.exe $slnFile //p:Configuration=Release //p:Platform=x86 //t:Build //m //p:AllowedReferenceRelatedFileExtensions=.pdb
|
CheckExitCode MSBuild.exe $slnFile //p:Configuration=Release //p:Platform=x86 //t:Build //m //p:AllowedReferenceRelatedFileExtensions=.pdb
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildWithXbuild()
|
RestoreNuget()
|
||||||
|
{
|
||||||
|
export MONO_IOMAP=case
|
||||||
|
mono $nuget restore $slnFile
|
||||||
|
}
|
||||||
|
|
||||||
|
CleanWithXbuild()
|
||||||
{
|
{
|
||||||
export MONO_IOMAP=case
|
export MONO_IOMAP=case
|
||||||
CheckExitCode xbuild /t:Clean $slnFile
|
CheckExitCode xbuild /t:Clean $slnFile
|
||||||
mono $nuget restore $slnFile
|
}
|
||||||
|
|
||||||
|
BuildWithXbuild()
|
||||||
|
{
|
||||||
|
export MONO_IOMAP=case
|
||||||
CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile
|
CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,6 +96,8 @@ Build()
|
||||||
if [ $runtime = "dotnet" ] ; then
|
if [ $runtime = "dotnet" ] ; then
|
||||||
BuildWithMSBuild
|
BuildWithMSBuild
|
||||||
else
|
else
|
||||||
|
CleanWithXbuild
|
||||||
|
RestoreNuget
|
||||||
BuildWithXbuild
|
BuildWithXbuild
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -256,6 +268,8 @@ case "$(uname -s)" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]
|
||||||
|
then
|
||||||
Build
|
Build
|
||||||
RunGulp
|
RunGulp
|
||||||
PackageMono
|
PackageMono
|
||||||
|
@ -263,3 +277,30 @@ PackageOsx
|
||||||
PackageOsxApp
|
PackageOsxApp
|
||||||
PackageTests
|
PackageTests
|
||||||
CleanupWindowsPackage
|
CleanupWindowsPackage
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" -eq "PrepareBuild" ]
|
||||||
|
then rm -rf $outputFolder
|
||||||
|
CleanWithXbuild
|
||||||
|
RestoreNuget
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" -eq "Build" ]
|
||||||
|
then BuildWithXbuild
|
||||||
|
CleanFolder $outputFolder false
|
||||||
|
AddJsonNet
|
||||||
|
rm $outputFolder/Mono.Posix.dll
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" -eq "Gulp" ]
|
||||||
|
then RunGulp
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$1" -eq "Package" ]
|
||||||
|
then PackageMono
|
||||||
|
PackageOsx
|
||||||
|
PackageOsxApp
|
||||||
|
PackageTests
|
||||||
|
CleanupWindowsPackage
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue