VoidBuildSystem CI / 1 · Requirements (push) Successful in 4s
VoidBuildSystem CI / 2b · Windows native (debug) (push) Failing after 16s
VoidBuildSystem CI / 2b · Windows native (relwithdebinfo) (push) Failing after 8s
VoidBuildSystem CI / 2 · Linux build (debug) (push) Successful in 2m40s
VoidBuildSystem CI / 2 · Linux build (asan) (push) Successful in 5m0s
VoidBuildSystem CI / 2 · Linux build (ubsan) (push) Successful in 5m10s
VoidBuildSystem CI / 2 · Linux build (relwithdebinfo) (push) Successful in 4m46s
VoidBuildSystem CI / 3 · Linux test (asan) (push) Successful in 56s
VoidBuildSystem CI / 3 · Linux test (ubsan) (push) Successful in 1m56s
VoidBuildSystem CI / 3 · Linux test (debug) (push) Failing after 6m43s
VoidBuildSystem CI / 3b · Windows Wine test (debug) (push) Failing after 2m37s
VoidBuildSystem CI / 3b · Windows Wine test (relwithdebinfo) (push) Failing after 2m5s
VoidBuildSystem CI / 3 · Linux test (relwithdebinfo) (push) Failing after 5m35s
VoidBuildSystem CI / 4 · Linux package (asan) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (ubsan) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
Split the pipeline into Linux native (Debug, RelWithDebInfo, ASan, UBSan), Windows Wine (Debug, RelWithDebInfo) and Windows native MSYS2 UCRT64 lanes, each with its own test and package jobs whose packages are downloadable from the run. The release publishes only the RelWithDebInfo packages of Linux native and Windows native. Native Windows stays non-blocking until the Track C3 port lands: VBS's platform backends are Linux-only and VoidLibrary does not qualify Archive/Configuration/Crypto/System for Windows yet (Void/Library issue #65).
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
# Native Windows build, test and package for one variant.
|
|
#
|
|
# Runs inside MSYS2 UCRT64 (invoked from the ci.yml windows-native job):
|
|
# windows-native.sh <variant> <build_type>
|
|
#
|
|
# Track C3 caveat: the VBS platform backends are Linux-only today and
|
|
# VoidLibrary does not qualify Archive/Configuration/Crypto/System for Windows
|
|
# yet (Void/Library issue #65), so this lane fails until that port lands.
|
|
set -euo pipefail
|
|
|
|
variant="${1:?variant}"
|
|
build_type="${2:?build type}"
|
|
|
|
root="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
cd "${root}"
|
|
|
|
build="build/windows-${variant}"
|
|
out="dist-windows-${variant}"
|
|
|
|
cmake -S . -B "${build}" -G Ninja \
|
|
-DCMAKE_BUILD_TYPE="${build_type}" \
|
|
-DCMAKE_CXX_COMPILER=g++ \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
|
cmake --build "${build}" --parallel 4
|
|
ctest --test-dir "${build}" --output-on-failure
|
|
|
|
label="${VBS_RELEASE_TAG:-}"
|
|
if [ -z "${label}" ]; then
|
|
case "${GITHUB_REF_NAME:-}" in
|
|
v*) label="${GITHUB_REF_NAME}" ;;
|
|
*) label="dev-$(printf '%s' "${GITHUB_SHA:-local}" | cut -c1-7)" ;;
|
|
esac
|
|
fi
|
|
|
|
stage="$(mktemp -d)"
|
|
mkdir -p "${stage}/bin" "${stage}/include" "${stage}/lib" "${out}"
|
|
cp "${build}"/bin/*.exe "${stage}/bin/" 2>/dev/null || true
|
|
cp -r include/Void "${stage}/include/"
|
|
find "${build}" -maxdepth 1 -name 'libVoidBuild_Sdk.a' -exec cp {} "${stage}/lib/" \;
|
|
cp README.md LICENSE "${stage}/"
|
|
tar -czf "${out}/vbs-${label}-windows-x86_64-${variant}.tar.gz" -C "${stage}" .
|
|
ls -l "${out}/"
|