feat(install): cross-target installs and target-only builds
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m26s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m38s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 1m26s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 1m18s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m15s
VoidBuildSystem CI / 4A2 · VBS installers (self-hosted) (push) Failing after 31s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 2s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m31s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m13s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m24s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m43s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 20s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 26s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m42s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 22s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 37s

- vbs install accepts --target-os/--target-arch like vbs build, so the
  Windows installers can be produced from the Linux host.
- Only targets carrying an install rule (plus their dependencies) are
  built, so install no longer links test executables.
- Failed install actions print their captured stderr.
- The VBS description compares the target OS case-insensitively.
- The installer job uses a per-run build directory: concurrent runs on
  the same runner share the repository workspace.
This commit is contained in:
faumaray committed 2026-12-06 09:12:21 +03:00
1 parent 0186711a90
commit f1e52467d7
3 files changed
+43 -8

No files matched your search

+5 -3
View File
@@ -247,8 +247,10 @@ jobs:
out=dist-installers
prefix="$(mktemp -d)"
mkdir -p "${out}"
# The first install builds the project with VBS (build.cpp); the rest reuse
# the shared build directory.
# Concurrent runs on the same runner share the repository workspace, so the
# self-hosted build directory is unique per run. The first install builds the
# project with VBS (build.cpp); the rest reuse it.
build_dir="build/selfhost-${GITHUB_RUN_ID}"
for fmt in tar sh zip deb rpm wix dmg nuget; do
case "${fmt}" in
tar) ext=tar ;;
@@ -256,7 +258,7 @@ jobs:
nuget) ext=nupkg ;;
*) ext="${fmt}" ;;
esac
"${vbs}" install --project . --build-dir build/selfhost --profile release \
"${vbs}" install --project . --build-dir "${build_dir}" --profile release \
--prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \
--archive "${out}/vbs-${label}-linux-x86_64-${fmt}.${ext}" \