From 95801ccfd71011be45fa7650949fdc0a0250eb0d Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sat, 5 Dec 2026 15:48:02 +0300 Subject: [PATCH] ci: add the missing Windows package job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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. --- .gitea/scripts/windows-native.sh | 10 +++--- .gitea/workflows/ci.yml | 53 +++++++++++++++++++++++++++++--- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/.gitea/scripts/windows-native.sh b/.gitea/scripts/windows-native.sh index b89fa75..7b2b3ea 100644 --- a/.gitea/scripts/windows-native.sh +++ b/.gitea/scripts/windows-native.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash # Native Windows lane for one variant, driven inside MSYS2 UCRT64. # -# windows-native.sh build configure + build -# windows-native.sh test test + package +# windows-native.sh build configure + build +# windows-native.sh test run CTest +# windows-native.sh package package the build outputs # # Track C3 caveat: the VBS platform backends are Linux-only today and # VoidLibrary does not qualify Archive/Configuration/Crypto/System for Windows @@ -39,7 +40,8 @@ build) ;; test) ctest --test-dir "${build}" --output-on-failure --no-tests=error - + ;; +package) out="dist-windows-${variant}" label="${VBS_RELEASE_TAG:-}" if [ -z "${label}" ]; then @@ -59,7 +61,7 @@ test) ls -l "${out}/" ;; *) - echo "unknown phase '${phase}' (expected build or test)" >&2 + echo "unknown phase '${phase}' (expected build, test or package)" >&2 exit 2 ;; esac diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 88a0b99..866e3bf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -413,7 +413,47 @@ jobs: with: name: vbs-windows-build-${{ 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 env: VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }} @@ -428,7 +468,7 @@ jobs: 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 }}' + "%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 if: always() uses: actions/upload-artifact@v3 @@ -443,9 +483,11 @@ jobs: # --------------------------------------------------------------------------- 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] - 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 steps: - uses: actions/checkout@v4 @@ -454,7 +496,8 @@ jobs: with: name: vbs-linux-package-relwithdebinfo 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 with: name: vbs-windows-package-relwithdebinfo