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
+150
-44
No files matched your search
@@ -1,22 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Native Windows build, test and package for one variant.
|
# Native Windows lane for one variant, driven inside MSYS2 UCRT64.
|
||||||
#
|
#
|
||||||
# Runs inside MSYS2 UCRT64 (invoked from the ci.yml windows-native job):
|
# windows-native.sh build <variant> <build_type> configure + build
|
||||||
# windows-native.sh <variant> <build_type>
|
# windows-native.sh test <variant> <build_type> test + package
|
||||||
#
|
#
|
||||||
# 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
|
||||||
# yet (Void/Library issue #65), so this lane fails until that port lands.
|
# yet (Void/Library issue #65), so this lane fails until that port lands.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
variant="${1:?variant}"
|
phase="${1:?phase (build or test)}"
|
||||||
build_type="${2:?build type}"
|
variant="${2:?variant}"
|
||||||
|
build_type="${3:?build type}"
|
||||||
|
|
||||||
root="$(cd "$(dirname "$0")/../.." && pwd)"
|
root="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||||
cd "${root}"
|
cd "${root}"
|
||||||
|
|
||||||
build="build/windows-${variant}"
|
build="build/windows-${variant}"
|
||||||
out="dist-windows-${variant}"
|
|
||||||
|
|
||||||
# Make sure the UCRT64 environment provides the build tools.
|
# Make sure the UCRT64 environment provides the build tools.
|
||||||
if ! command -v cmake >/dev/null 2>&1 || ! command -v ninja >/dev/null 2>&1; then
|
if ! command -v cmake >/dev/null 2>&1 || ! command -v ninja >/dev/null 2>&1; then
|
||||||
@@ -28,13 +28,18 @@ if ! command -v cmake >/dev/null 2>&1 || ! command -v ninja >/dev/null 2>&1; the
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case "${phase}" in
|
||||||
|
build)
|
||||||
cmake -S . -B "${build}" -G Ninja \
|
cmake -S . -B "${build}" -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE="${build_type}" \
|
-DCMAKE_BUILD_TYPE="${build_type}" \
|
||||||
-DCMAKE_CXX_COMPILER=g++ \
|
-DCMAKE_CXX_COMPILER=g++ \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
cmake --build "${build}" --parallel 4
|
cmake --build "${build}" --parallel 4
|
||||||
ctest --test-dir "${build}" --output-on-failure
|
;;
|
||||||
|
test)
|
||||||
|
ctest --test-dir "${build}" --output-on-failure --no-tests=error
|
||||||
|
|
||||||
|
out="dist-windows-${variant}"
|
||||||
label="${VBS_RELEASE_TAG:-}"
|
label="${VBS_RELEASE_TAG:-}"
|
||||||
if [ -z "${label}" ]; then
|
if [ -z "${label}" ]; then
|
||||||
case "${GITHUB_REF_NAME:-}" in
|
case "${GITHUB_REF_NAME:-}" in
|
||||||
@@ -51,3 +56,9 @@ find "${build}" -maxdepth 1 -name 'libVoidBuild_Sdk.a' -exec cp {} "${stage}/lib
|
|||||||
cp README.md LICENSE "${stage}/"
|
cp README.md LICENSE "${stage}/"
|
||||||
tar -czf "${out}/vbs-${label}-windows-x86_64-${variant}.tar.gz" -C "${stage}" .
|
tar -czf "${out}/vbs-${label}-windows-x86_64-${variant}.tar.gz" -C "${stage}" .
|
||||||
ls -l "${out}/"
|
ls -l "${out}/"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "unknown phase '${phase}' (expected build or test)" >&2
|
||||||
|
exit 2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
+132
-37
@@ -1,15 +1,13 @@
|
|||||||
# VoidBuildSystem CI (Gitea Actions).
|
# VoidBuildSystem CI (Gitea Actions).
|
||||||
#
|
#
|
||||||
# Platform x variant pipeline:
|
# Graph:
|
||||||
#
|
#
|
||||||
# 1. requirements verify the GCC 16 toolchain and install development headers
|
# 1. Requirements
|
||||||
# 2. build Linux native (Debug, RelWithDebInfo, ASan, UBSan)
|
# 2A. Linux build (Debug, RelWithDebInfo, Sanitizers) -> 3A. Linux tests
|
||||||
# Windows Wine (Debug, RelWithDebInfo) - cross-built targets
|
# 2B. Windows Wine build (same variants) -> 3B. Windows Wine tests
|
||||||
# Windows native MSYS2 UCRT64 (Debug, RelWithDebInfo)
|
# 2C. Windows Native build (same variants) -> 3C. Windows Native tests
|
||||||
# 3. test one job per build configuration
|
# 4. Packages (one downloadable package per configuration)
|
||||||
# 4. package one downloadable package per configuration (run artifacts)
|
# 5. Release (RelWithDebInfo Linux + Windows packages)
|
||||||
# 5. release publishes ONLY the RelWithDebInfo packages of Linux native
|
|
||||||
# and Windows native (v* tag or a manual publish dispatch)
|
|
||||||
#
|
#
|
||||||
# Runner: `echoion-release-serial` (GCC 16 builder container, Debian-based) and
|
# Runner: `echoion-release-serial` (GCC 16 builder container, Debian-based) and
|
||||||
# `windows-x64` (native Windows runner with MSYS2 at C:\msys64).
|
# `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
|
# Native Windows is gated on the Track C3 port: VBS's platform backends are
|
||||||
# Linux-only today and VoidLibrary does not qualify Archive/Configuration/
|
# 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.
|
# lane is non-blocking until that port lands.
|
||||||
name: VoidBuildSystem CI
|
name: VoidBuildSystem CI
|
||||||
|
|
||||||
@@ -91,8 +89,11 @@ jobs:
|
|||||||
echo "all development packages are already installed"
|
echo "all development packages are already installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# 2A / 3A - Linux native
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
linux-build:
|
linux-build:
|
||||||
name: "2 · Linux build (${{ matrix.variant }})"
|
name: "2A · Linux build (${{ matrix.variant }})"
|
||||||
needs: requirements
|
needs: requirements
|
||||||
runs-on: echoion-release-serial
|
runs-on: echoion-release-serial
|
||||||
strategy:
|
strategy:
|
||||||
@@ -107,14 +108,10 @@ jobs:
|
|||||||
build_type: RelWithDebInfo
|
build_type: RelWithDebInfo
|
||||||
cxx_flags: ""
|
cxx_flags: ""
|
||||||
linker_flags: ""
|
linker_flags: ""
|
||||||
- variant: asan
|
- variant: sanitizers
|
||||||
build_type: Debug
|
build_type: Debug
|
||||||
cxx_flags: "-fsanitize=address -fno-omit-frame-pointer"
|
cxx_flags: "-fsanitize=address,undefined -fno-omit-frame-pointer"
|
||||||
linker_flags: "-fsanitize=address"
|
linker_flags: "-fsanitize=address,undefined"
|
||||||
- variant: ubsan
|
|
||||||
build_type: Debug
|
|
||||||
cxx_flags: "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer"
|
|
||||||
linker_flags: "-fsanitize=undefined"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Configure
|
- name: Configure
|
||||||
@@ -142,7 +139,7 @@ jobs:
|
|||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
linux-test:
|
linux-test:
|
||||||
name: "3 · Linux test (${{ matrix.variant }})"
|
name: "3A · Linux test (${{ matrix.variant }})"
|
||||||
needs: linux-build
|
needs: linux-build
|
||||||
runs-on: echoion-release-serial
|
runs-on: echoion-release-serial
|
||||||
strategy:
|
strategy:
|
||||||
@@ -153,9 +150,7 @@ jobs:
|
|||||||
test_regex: ""
|
test_regex: ""
|
||||||
- variant: relwithdebinfo
|
- variant: relwithdebinfo
|
||||||
test_regex: ""
|
test_regex: ""
|
||||||
- variant: asan
|
- variant: sanitizers
|
||||||
test_regex: "vbs_sdk_tests|vbs_core_tests"
|
|
||||||
- variant: ubsan
|
|
||||||
test_regex: "vbs_sdk_tests|vbs_core_tests"
|
test_regex: "vbs_sdk_tests|vbs_core_tests"
|
||||||
env:
|
env:
|
||||||
ASAN_OPTIONS: detect_leaks=1
|
ASAN_OPTIONS: detect_leaks=1
|
||||||
@@ -191,7 +186,7 @@ jobs:
|
|||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
linux-package:
|
linux-package:
|
||||||
name: "4 · Linux package (${{ matrix.variant }})"
|
name: "4A · Linux package (${{ matrix.variant }})"
|
||||||
needs: linux-test
|
needs: linux-test
|
||||||
runs-on: echoion-release-serial
|
runs-on: echoion-release-serial
|
||||||
strategy:
|
strategy:
|
||||||
@@ -200,8 +195,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- variant: debug
|
- variant: debug
|
||||||
- variant: relwithdebinfo
|
- variant: relwithdebinfo
|
||||||
- variant: asan
|
- variant: sanitizers
|
||||||
- variant: ubsan
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Download the build
|
- name: Download the build
|
||||||
@@ -243,9 +237,55 @@ jobs:
|
|||||||
path: dist-linux-${{ matrix.variant }}/
|
path: dist-linux-${{ matrix.variant }}/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
windows-wine:
|
# ---------------------------------------------------------------------------
|
||||||
name: "3b · Windows Wine test (${{ matrix.variant }})"
|
# 2B / 3B - Windows Wine (Linux host, MinGW-w64 cross build, Wine execution)
|
||||||
needs: linux-build
|
# ---------------------------------------------------------------------------
|
||||||
|
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
|
runs-on: echoion-release-serial
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -253,17 +293,18 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- variant: debug
|
- variant: debug
|
||||||
- variant: relwithdebinfo
|
- variant: relwithdebinfo
|
||||||
|
- variant: sanitizers
|
||||||
env:
|
env:
|
||||||
WINEDEBUG: "-all"
|
WINEDEBUG: "-all"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Download the Linux build
|
- name: Download the build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: vbs-linux-build-${{ matrix.variant }}
|
name: vbs-wine-build-${{ matrix.variant }}
|
||||||
path: build/linux-${{ matrix.variant }}
|
path: build/wine-${{ matrix.variant }}
|
||||||
- name: Make the restored binaries executable
|
- 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
|
- name: Install the MinGW-w64 cross toolchain and Wine
|
||||||
run: |
|
run: |
|
||||||
sudo=""
|
sudo=""
|
||||||
@@ -292,7 +333,7 @@ jobs:
|
|||||||
- name: Cross-build a Windows target and run it under Wine
|
- name: Cross-build a Windows target and run it under Wine
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
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 \
|
--filter track_c_windows_target_cross_build_and_wine_test \
|
||||||
2>&1 | tee "ctest-wine-${{ matrix.variant }}.log"
|
2>&1 | tee "ctest-wine-${{ matrix.variant }}.log"
|
||||||
- name: Upload the Wine log
|
- name: Upload the Wine log
|
||||||
@@ -303,8 +344,11 @@ jobs:
|
|||||||
path: ctest-wine-${{ matrix.variant }}.log
|
path: ctest-wine-${{ matrix.variant }}.log
|
||||||
retention-days: 14
|
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
|
needs: requirements
|
||||||
runs-on: windows-x64
|
runs-on: windows-x64
|
||||||
# Track C3 port in progress: the VBS platform backends are Linux-only and
|
# Track C3 port in progress: the VBS platform backends are Linux-only and
|
||||||
@@ -319,9 +363,57 @@ jobs:
|
|||||||
build_type: Debug
|
build_type: Debug
|
||||||
- variant: relwithdebinfo
|
- variant: relwithdebinfo
|
||||||
build_type: RelWithDebInfo
|
build_type: RelWithDebInfo
|
||||||
|
- variant: sanitizers
|
||||||
|
build_type: Debug
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
shell: cmd
|
||||||
env:
|
env:
|
||||||
VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }}
|
VBS_MSYS2_ROOT: ${{ vars.VBS_MSYS2_ROOT || 'C:\msys64' }}
|
||||||
@@ -336,7 +428,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 -- ${{ 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
|
- name: Upload the Windows package
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -346,6 +438,9 @@ jobs:
|
|||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# 5 - Release
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
release:
|
release:
|
||||||
name: "5 · Release"
|
name: "5 · Release"
|
||||||
needs: linux-package
|
needs: linux-package
|
||||||
|
|||||||
Reference in new issue
Block a user