ci: make downstream jobs self-sufficient
VoidBuildSystem CI / 1 · Requirements (push) Successful in 11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 7m2s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m41s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 7m18s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 7m34s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m7s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 5m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m44s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m43s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m32s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m52s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m42s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 1m38s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 1m50s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 7m11s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 31s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 21s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Failing after 3m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Failing after 1m26s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 1 · Requirements (push) Successful in 11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 7m2s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 6m41s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 7m18s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 7m34s
VoidBuildSystem CI / 2B · Windows Wine build (sanitizers) (push) Successful in 3m7s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m2s
VoidBuildSystem CI / 2C · Windows native build (debug) (push) Successful in 5m35s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m16s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 3m44s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 3m43s
VoidBuildSystem CI / 3B · Windows Wine test (sanitizers) (push) Successful in 2m32s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m52s
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m42s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 1m38s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 1m50s
VoidBuildSystem CI / 2C · Windows native build (relwithdebinfo) (push) Successful in 7m11s
VoidBuildSystem CI / 3C · Windows native test (debug) (push) Failing after 31s
VoidBuildSystem CI / 3C · Windows native test (relwithdebinfo) (push) Failing after 21s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Failing after 3m2s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Failing after 1m26s
VoidBuildSystem CI / 5 · Release (push) Skipped
The runner gives every job a different workspace directory, so the absolute paths baked into restored build artifacts (and the Ninja version installed by `requirements`) do not carry over. The Windows test/package phases now reconfigure and rebuild from the restored tree, and the Linux test job re-ensures Ninja >= 1.11 before running the CMake module-scanning suite.
This commit is contained in:
1 parent
d367331f85
commit
3a69f33dfe
2 files changed
+15
-2
No files matched your search
@@ -43,20 +43,30 @@ if [ "${variant}" = "sanitizers" ]; then
|
||||
linker_flags="-fsanitize=address,undefined"
|
||||
fi
|
||||
|
||||
case "${phase}" in
|
||||
build)
|
||||
configure() {
|
||||
cmake -S . -B "${build}" -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE="${build_type}" \
|
||||
-DCMAKE_CXX_COMPILER=g++ \
|
||||
-DCMAKE_CXX_FLAGS="${cxx_flags}" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="${linker_flags}" \
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
}
|
||||
|
||||
case "${phase}" in
|
||||
build)
|
||||
configure
|
||||
cmake --build "${build}" --parallel 4
|
||||
;;
|
||||
test)
|
||||
# The runner uses a different workspace directory per job, so the restored
|
||||
# build's absolute paths are stale: reconfigure and rebuild incrementally.
|
||||
configure
|
||||
cmake --build "${build}" --parallel 4
|
||||
ctest --test-dir "${build}" --output-on-failure --no-tests=error
|
||||
;;
|
||||
package)
|
||||
configure
|
||||
cmake --build "${build}" --parallel 4
|
||||
out="dist-windows-${variant}"
|
||||
label="${VBS_RELEASE_TAG:-}"
|
||||
if [ -z "${label}" ]; then
|
||||
|
||||
Reference in new issue
Block a user