ci: three platform lanes with matching test and package stages
VoidBuildSystem CI / 1 · Requirements (push) Successful in 11s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 13s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 13s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 12s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m38s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 3m15s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 10s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 10s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m42s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m57s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m57s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m33s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m55s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 5m4s
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 / 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 / 5 · Release (push) Canceled after 0s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Canceled after 7m22s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Canceled after 7m22s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 11s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Failing after 13s
VoidBuildSystem CI / 2C · Windows native build (sanitizers) (push) Failing after 13s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Failing after 12s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m38s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 3m15s
VoidBuildSystem CI / 3C · Windows native test (sanitizers) (push) Failing after 10s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 10s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m42s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m57s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m57s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m33s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m55s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 5m4s
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 / 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 / 5 · Release (push) Canceled after 0s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Canceled after 7m22s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Canceled after 7m22s
Graph: 1 Requirements -> 2A/2B/2C builds (Linux native, Windows Wine, Windows native; each with Debug, RelWithDebInfo, Sanitizers) -> 3A/3B/3C matching tests -> 4A/4B/4C packages -> 5 Release. The MSYS2 lane is split into build and test/package jobs so the downloadable Windows packages come from the test stage.
This commit is contained in:
1 parent
6129762cc6
commit
6fa70fb788
2 files changed
+170
-64
No files matched your search
+132
-37
@@ -1,15 +1,13 @@
|
||||
# VoidBuildSystem CI (Gitea Actions).
|
||||
#
|
||||
# Platform x variant pipeline:
|
||||
# Graph:
|
||||
#
|
||||
# 1. requirements verify the GCC 16 toolchain and install development headers
|
||||
# 2. build Linux native (Debug, RelWithDebInfo, ASan, UBSan)
|
||||
# Windows Wine (Debug, RelWithDebInfo) - cross-built targets
|
||||
# Windows native MSYS2 UCRT64 (Debug, RelWithDebInfo)
|
||||
# 3. test one job per build configuration
|
||||
# 4. package one downloadable package per configuration (run artifacts)
|
||||
# 5. release publishes ONLY the RelWithDebInfo packages of Linux native
|
||||
# and Windows native (v* tag or a manual publish dispatch)
|
||||
# 1. Requirements
|
||||
# 2A. Linux build (Debug, RelWithDebInfo, Sanitizers) -> 3A. Linux tests
|
||||
# 2B. Windows Wine build (same variants) -> 3B. Windows Wine tests
|
||||
# 2C. Windows Native build (same variants) -> 3C. Windows Native tests
|
||||
# 4. Packages (one downloadable package per configuration)
|
||||
# 5. Release (RelWithDebInfo Linux + Windows packages)
|
||||
#
|
||||
# Runner: `echoion-release-serial` (GCC 16 builder container, Debian-based) and
|
||||
# `windows-x64` (native Windows runner with MSYS2 at C:\msys64).
|
||||
@@ -21,7 +19,7 @@
|
||||
#
|
||||
# Native Windows is gated on the Track C3 port: VBS's platform backends are
|
||||
# Linux-only today and VoidLibrary does not qualify Archive/Configuration/
|
||||
# Crypto/System for Windows yet (Void/Library issue #65). The windows-native
|
||||
# Crypto/System for Windows yet (Void/Library issue #65). The Windows native
|
||||
# lane is non-blocking until that port lands.
|
||||
name: VoidBuildSystem CI
|
||||
|
||||
@@ -91,8 +89,11 @@ jobs:
|
||||
echo "all development packages are already installed"
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2A / 3A - Linux native
|
||||
# ---------------------------------------------------------------------------
|
||||
linux-build:
|
||||
name: "2 · Linux build (${{ matrix.variant }})"
|
||||
name: "2A · Linux build (${{ matrix.variant }})"
|
||||
needs: requirements
|
||||
runs-on: echoion-release-serial
|
||||
strategy:
|
||||
@@ -107,14 +108,10 @@ jobs:
|
||||
build_type: RelWithDebInfo
|
||||
cxx_flags: ""
|
||||
linker_flags: ""
|
||||
- variant: asan
|
||||
- variant: sanitizers
|
||||
build_type: Debug
|
||||
cxx_flags: "-fsanitize=address -fno-omit-frame-pointer"
|
||||
linker_flags: "-fsanitize=address"
|
||||
- variant: ubsan
|
||||
build_type: Debug
|
||||
cxx_flags: "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer"
|
||||
linker_flags: "-fsanitize=undefined"
|
||||
cxx_flags: "-fsanitize=address,undefined -fno-omit-frame-pointer"
|
||||
linker_flags: "-fsanitize=address,undefined"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Configure
|
||||
@@ -142,7 +139,7 @@ jobs:
|
||||
retention-days: 7
|
||||
|
||||
linux-test:
|
||||
name: "3 · Linux test (${{ matrix.variant }})"
|
||||
name: "3A · Linux test (${{ matrix.variant }})"
|
||||
needs: linux-build
|
||||
runs-on: echoion-release-serial
|
||||
strategy:
|
||||
@@ -153,9 +150,7 @@ jobs:
|
||||
test_regex: ""
|
||||
- variant: relwithdebinfo
|
||||
test_regex: ""
|
||||
- variant: asan
|
||||
test_regex: "vbs_sdk_tests|vbs_core_tests"
|
||||
- variant: ubsan
|
||||
- variant: sanitizers
|
||||
test_regex: "vbs_sdk_tests|vbs_core_tests"
|
||||
env:
|
||||
ASAN_OPTIONS: detect_leaks=1
|
||||
@@ -191,7 +186,7 @@ jobs:
|
||||
retention-days: 14
|
||||
|
||||
linux-package:
|
||||
name: "4 · Linux package (${{ matrix.variant }})"
|
||||
name: "4A · Linux package (${{ matrix.variant }})"
|
||||
needs: linux-test
|
||||
runs-on: echoion-release-serial
|
||||
strategy:
|
||||
@@ -200,8 +195,7 @@ jobs:
|
||||
include:
|
||||
- variant: debug
|
||||
- variant: relwithdebinfo
|
||||
- variant: asan
|
||||
- variant: ubsan
|
||||
- variant: sanitizers
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download the build
|
||||
@@ -243,9 +237,55 @@ jobs:
|
||||
path: dist-linux-${{ matrix.variant }}/
|
||||
retention-days: 30
|
||||
|
||||
windows-wine:
|
||||
name: "3b · Windows Wine test (${{ matrix.variant }})"
|
||||
needs: linux-build
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2B / 3B - Windows Wine (Linux host, MinGW-w64 cross build, Wine execution)
|
||||
# ---------------------------------------------------------------------------
|
||||
wine-build:
|
||||
name: "2B · Windows Wine build (${{ matrix.variant }})"
|
||||
needs: requirements
|
||||
runs-on: echoion-release-serial
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- variant: debug
|
||||
build_type: Debug
|
||||
cxx_flags: ""
|
||||
linker_flags: ""
|
||||
- variant: relwithdebinfo
|
||||
build_type: RelWithDebInfo
|
||||
cxx_flags: ""
|
||||
linker_flags: ""
|
||||
- variant: sanitizers
|
||||
build_type: Debug
|
||||
cxx_flags: "-fsanitize=address,undefined -fno-omit-frame-pointer"
|
||||
linker_flags: "-fsanitize=address,undefined"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -S . -B "build/wine-${{ matrix.variant }}" -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
||||
-DCMAKE_CXX_COMPILER=g++ \
|
||||
-DCMAKE_CXX_FLAGS="${{ matrix.cxx_flags }}" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="${{ matrix.linker_flags }}"
|
||||
- name: Build the orchestrator and its tests
|
||||
run: |
|
||||
cmake --build "build/wine-${{ matrix.variant }}" \
|
||||
--target vbs vbs_v1_tests --parallel 4
|
||||
- name: Upload the build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vbs-wine-build-${{ matrix.variant }}
|
||||
path: |
|
||||
build/wine-${{ matrix.variant }}/bin/
|
||||
build/wine-${{ matrix.variant }}/_deps/voidlibrary-src/
|
||||
!build/wine-${{ matrix.variant }}/_deps/voidlibrary-src/.git/
|
||||
retention-days: 7
|
||||
|
||||
wine-test:
|
||||
name: "3B · Windows Wine test (${{ matrix.variant }})"
|
||||
needs: wine-build
|
||||
runs-on: echoion-release-serial
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -253,17 +293,18 @@ jobs:
|
||||
include:
|
||||
- variant: debug
|
||||
- variant: relwithdebinfo
|
||||
- variant: sanitizers
|
||||
env:
|
||||
WINEDEBUG: "-all"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download the Linux build
|
||||
- name: Download the build
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: vbs-linux-build-${{ matrix.variant }}
|
||||
path: build/linux-${{ matrix.variant }}
|
||||
name: vbs-wine-build-${{ matrix.variant }}
|
||||
path: build/wine-${{ matrix.variant }}
|
||||
- name: Make the restored binaries executable
|
||||
run: chmod +x "build/linux-${{ matrix.variant }}/bin/"*
|
||||
run: chmod +x "build/wine-${{ matrix.variant }}/bin/"*
|
||||
- name: Install the MinGW-w64 cross toolchain and Wine
|
||||
run: |
|
||||
sudo=""
|
||||
@@ -292,7 +333,7 @@ jobs:
|
||||
- name: Cross-build a Windows target and run it under Wine
|
||||
run: |
|
||||
set -o pipefail
|
||||
"build/linux-${{ matrix.variant }}/bin/vbs_v1_tests" --no-color \
|
||||
"build/wine-${{ matrix.variant }}/bin/vbs_v1_tests" --no-color \
|
||||
--filter track_c_windows_target_cross_build_and_wine_test \
|
||||
2>&1 | tee "ctest-wine-${{ matrix.variant }}.log"
|
||||
- name: Upload the Wine log
|
||||
@@ -303,8 +344,11 @@ jobs:
|
||||
path: ctest-wine-${{ matrix.variant }}.log
|
||||
retention-days: 14
|
||||
|
||||
windows-native:
|
||||
name: "2b · Windows native (${{ matrix.variant }})"
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2C / 3C - Windows native (MSYS2 UCRT64)
|
||||
# ---------------------------------------------------------------------------
|
||||
windows-native-build:
|
||||
name: "2C · Windows native build (${{ matrix.variant }})"
|
||||
needs: requirements
|
||||
runs-on: windows-x64
|
||||
# Track C3 port in progress: the VBS platform backends are Linux-only and
|
||||
@@ -319,9 +363,57 @@ jobs:
|
||||
build_type: Debug
|
||||
- variant: relwithdebinfo
|
||||
build_type: RelWithDebInfo
|
||||
- variant: sanitizers
|
||||
build_type: Debug
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Configure, build, test and package with MSYS2 UCRT64
|
||||
- name: Configure and build 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 -- build ${{ matrix.variant }} ${{ matrix.build_type }}'
|
||||
- name: Upload the build
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: vbs-windows-build-${{ matrix.variant }}
|
||||
path: build/windows-${{ matrix.variant }}/
|
||||
if-no-files-found: ignore
|
||||
retention-days: 7
|
||||
|
||||
windows-native-test:
|
||||
name: "3C · Windows native test (${{ matrix.variant }})"
|
||||
needs: windows-native-build
|
||||
runs-on: windows-x64
|
||||
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: Test and package with MSYS2 UCRT64
|
||||
shell: cmd
|
||||
env:
|
||||
VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }}
|
||||
@@ -336,7 +428,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 -- ${{ 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 -- test ${{ matrix.variant }} ${{ matrix.build_type }}'
|
||||
- name: Upload the Windows package
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
@@ -346,6 +438,9 @@ jobs:
|
||||
if-no-files-found: ignore
|
||||
retention-days: 30
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 5 - Release
|
||||
# ---------------------------------------------------------------------------
|
||||
release:
|
||||
name: "5 · Release"
|
||||
needs: linux-package
|
||||
|
||||
Reference in new issue
Block a user