ci: add the missing Windows package job
VoidBuildSystem CI / 1 · Requirements (push) Successful in 13s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 18s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 13s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 13s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Canceled after 4m1s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Canceled after 0s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Canceled after 0s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Canceled after 3m44s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Canceled after 0s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Canceled after 0s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Canceled after 3m16s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Canceled after 0s
VoidBuildSystem CI / 4B · Windows package (sanitizers) (push) Canceled after 0s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Canceled after 4m11s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Canceled after 2m7s

`release` needed `windows-package`, which did not exist, so Gitea
rejected the whole workflow (run with no jobs). Add `4B · Windows
package` after the Windows native tests: it restores the build, creates
the RelWithDebInfo/Debug/Sanitizers packages and uploads them. The
windows-native script now has separate build, test and package phases.

While the Windows native port is unfinished the package lane stays
non-blocking and `release` runs with always(); remove those two bits to
make a Windows failure block the release.
This commit is contained in:
faumaray committed 2026-12-05 15:48:02 +03:00
1 parent 8b391af480
commit 95801ccfd7
2 files changed
+54 -9

No files matched your search

+6 -4
View File
@@ -1,8 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Native Windows lane for one variant, driven inside MSYS2 UCRT64. # Native Windows lane for one variant, driven inside MSYS2 UCRT64.
# #
# windows-native.sh build <variant> <build_type> configure + build # windows-native.sh build <variant> <build_type> configure + build
# windows-native.sh test <variant> <build_type> test + package # windows-native.sh test <variant> <build_type> run CTest
# windows-native.sh package <variant> <build_type> package the build outputs
# #
# Track C3 caveat: the VBS platform backends are Linux-only today and # Track C3 caveat: the VBS platform backends are Linux-only today and
# VoidLibrary does not qualify Archive/Configuration/Crypto/System for Windows # VoidLibrary does not qualify Archive/Configuration/Crypto/System for Windows
@@ -39,7 +40,8 @@ build)
;; ;;
test) test)
ctest --test-dir "${build}" --output-on-failure --no-tests=error ctest --test-dir "${build}" --output-on-failure --no-tests=error
;;
package)
out="dist-windows-${variant}" out="dist-windows-${variant}"
label="${VBS_RELEASE_TAG:-}" label="${VBS_RELEASE_TAG:-}"
if [ -z "${label}" ]; then if [ -z "${label}" ]; then
@@ -59,7 +61,7 @@ test)
ls -l "${out}/" ls -l "${out}/"
;; ;;
*) *)
echo "unknown phase '${phase}' (expected build or test)" >&2 echo "unknown phase '${phase}' (expected build, test or package)" >&2
exit 2 exit 2
;; ;;
esac esac
+48 -5
View File
@@ -413,7 +413,47 @@ jobs:
with: with:
name: vbs-windows-build-${{ matrix.variant }} name: vbs-windows-build-${{ matrix.variant }}
path: build/windows-${{ matrix.variant }} path: build/windows-${{ matrix.variant }}
- name: Test and package with MSYS2 UCRT64 - name: Test with MSYS2 UCRT64
shell: cmd
env:
VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }}
run: |
@echo off
setlocal EnableExtensions
if not exist "%VBS_MSYS2_ROOT%\usr\bin\bash.exe" (
echo Windows CI: MSYS2 bash.exe was not found under VBS_MSYS2_ROOT. 1>&2
exit /b 1
)
set "MSYSTEM=UCRT64"
set "CHERE_INVOKING=1"
set "MSYS2_PATH_TYPE=strict"
"%VBS_MSYS2_ROOT%\usr\bin\bash.exe" --login -c 'cd "$(cygpath -u "$GITHUB_WORKSPACE")" && tr -d "\r" < .gitea/scripts/windows-native.sh | bash -s -- test ${{ matrix.variant }} ${{ matrix.build_type }}'
windows-package:
name: "4B · Windows package (${{ matrix.variant }})"
needs: windows-native-test
runs-on: windows-x64
# Track C3 port in progress: keep the package lane non-blocking while the
# Windows native build is still being ported (Void/Library issue #65).
continue-on-error: true
strategy:
fail-fast: false
matrix:
include:
- variant: debug
build_type: Debug
- variant: relwithdebinfo
build_type: RelWithDebInfo
- variant: sanitizers
build_type: Debug
steps:
- uses: actions/checkout@v4
- name: Download the build
uses: actions/download-artifact@v3
with:
name: vbs-windows-build-${{ matrix.variant }}
path: build/windows-${{ matrix.variant }}
- name: Package with MSYS2 UCRT64
shell: cmd shell: cmd
env: env:
VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }} VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }}
@@ -428,7 +468,7 @@ jobs:
set "MSYSTEM=UCRT64" set "MSYSTEM=UCRT64"
set "CHERE_INVOKING=1" set "CHERE_INVOKING=1"
set "MSYS2_PATH_TYPE=strict" set "MSYS2_PATH_TYPE=strict"
"%VBS_MSYS2_ROOT%\usr\bin\bash.exe" --login -c 'cd "$(cygpath -u "$GITHUB_WORKSPACE")" && tr -d "\r" < .gitea/scripts/windows-native.sh | bash -s -- test ${{ matrix.variant }} ${{ matrix.build_type }}' "%VBS_MSYS2_ROOT%\usr\bin\bash.exe" --login -c 'cd "$(cygpath -u "$GITHUB_WORKSPACE")" && tr -d "\r" < .gitea/scripts/windows-native.sh | bash -s -- package ${{ matrix.variant }} ${{ matrix.build_type }}'
- name: Upload the Windows package - name: Upload the Windows package
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@@ -443,9 +483,11 @@ jobs:
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
release: release:
name: "5 · Release" name: "5 · Release"
# Links every package lane: any package failure blocks the release. # Linked to every package lane. always() keeps the release runnable while the
# Windows native port is unfinished (2C/3C are red until Track C3); drop it
# to make a Windows package failure block the release.
needs: [linux-package, windows-package] needs: [linux-package, windows-package]
if: startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true' if: always() && (startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true')
runs-on: echoion-release-serial runs-on: echoion-release-serial
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -454,7 +496,8 @@ jobs:
with: with:
name: vbs-linux-package-relwithdebinfo name: vbs-linux-package-relwithdebinfo
path: dist path: dist
- name: Download the RelWithDebInfo Windows package - name: Download the RelWithDebInfo Windows package (when available)
continue-on-error: true
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: vbs-windows-package-relwithdebinfo name: vbs-windows-package-relwithdebinfo