mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
CICD: Build Release Versions on Push.
Change the builds on push (i.e. pull request merges) to build release versions. This seems to be the correct way to build these, as they are now distributed as the official builds on https://subsurface-divelog.org/. For users wanting to help with debugging, build artifacts on pull requests are available, and these are debug builds. Also adding the option to manually trigger builds, so if needed debug builds can be run on `master`. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
91d8bfef55
commit
015ac0e459
14 changed files with 71 additions and 17 deletions
|
|
@ -13,9 +13,17 @@ set -e
|
|||
mkdir -p win32
|
||||
cd win32
|
||||
|
||||
BUILD_EXTRA_ARGS="debug"
|
||||
SMTK2SSRF_EXTRA_ARGS="-b debug"
|
||||
if [[ "$1" == "-release" ]]; then
|
||||
BUILD_EXTRA_ARGS=""
|
||||
SMTK2SSRF_BUILD_EXTRA_ARGS="-b release"
|
||||
shift
|
||||
fi
|
||||
|
||||
# build Subsurface
|
||||
export MXEBUILDTYPE=x86_64-w64-mingw32.shared
|
||||
bash -ex ../subsurface/packaging/windows/mxe-based-build.sh installer
|
||||
bash -ex ../subsurface/packaging/windows/mxe-based-build.sh ${BUILD_EXTRA_ARGS} installer
|
||||
|
||||
# the strange two step move is in order to get predictable names to use
|
||||
# in the publish step of the GitHub Action
|
||||
|
|
@ -27,7 +35,7 @@ mv subsurface/"$fullname" ${OUTPUT_DIR}/"${fullname%.exe}-installer.exe"
|
|||
|
||||
bash -ex ../subsurface/packaging/windows/mxe-based-build.sh -noftdi -nolibraw subsurface
|
||||
|
||||
bash -ex ../subsurface/packaging/windows/smtk2ssrf-mxe-build.sh -a -i
|
||||
bash -ex ../subsurface/packaging/windows/smtk2ssrf-mxe-build.sh ${SMTK2SSRF_BUILD_EXTRA_ARGS} -a -i
|
||||
|
||||
# the strange two step move is in order to get predictable names to use
|
||||
# in the publish step of the GitHub Action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue