ci: require Ninja 1.11 for C++20 module scanning
VoidBuildSystem CI / 1 · Requirements (push) Failing after 9s
VoidBuildSystem CI / 2 · Linux build (debug) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (asan) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (ubsan) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (debug) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (asan) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (ubsan) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (asan) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (ubsan) (push) Skipped
VoidBuildSystem CI / 3b · Windows Wine test (debug) (push) Skipped
VoidBuildSystem CI / 3b · Windows Wine test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 2b · Windows native (debug) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 2b · Windows native (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 1 · Requirements (push) Failing after 9s
VoidBuildSystem CI / 2 · Linux build (debug) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (asan) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (ubsan) (push) Skipped
VoidBuildSystem CI / 2 · Linux build (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (debug) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (asan) (push) Skipped
VoidBuildSystem CI / 3 · Linux test (ubsan) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (asan) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (debug) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 4 · Linux package (ubsan) (push) Skipped
VoidBuildSystem CI / 3b · Windows Wine test (debug) (push) Skipped
VoidBuildSystem CI / 3b · Windows Wine test (relwithdebinfo) (push) Skipped
VoidBuildSystem CI / 2b · Windows native (debug) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 2b · Windows native (relwithdebinfo) (push) Skipped
The runner ships Ninja 1.10.1, which makes CMake reject C++20 module projects. Try an apt upgrade once during requirements, then fail with a clear message if the version is still too old.
This commit is contained in:
1 parent
8fddffd127
commit
5e01bbf8a1
1 file changed
+15
@@ -66,6 +66,21 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
ninja --version
|
ninja --version
|
||||||
|
ninja_version="$(ninja --version)"
|
||||||
|
if [ "$(printf '%s\n%s\n' 1.11 "${ninja_version}" | sort -V | head -n1)" != "1.11" ]; then
|
||||||
|
# CMake needs Ninja 1.11+ for C++20 module scanning: try upgrading once.
|
||||||
|
if command -v apt-get >/dev/null 2>&1; then
|
||||||
|
sudo=""
|
||||||
|
if [ "$(id -u)" -ne 0 ]; then sudo="sudo"; fi
|
||||||
|
${sudo} apt-get update || true
|
||||||
|
${sudo} apt-get install -y ninja-build || true
|
||||||
|
fi
|
||||||
|
ninja_version="$(ninja --version)"
|
||||||
|
fi
|
||||||
|
if [ "$(printf '%s\n%s\n' 1.11 "${ninja_version}" | sort -V | head -n1)" != "1.11" ]; then
|
||||||
|
echo "Ninja 1.11 or newer is required for C++20 module scanning (found ${ninja_version})" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
git --version
|
git --version
|
||||||
- name: Install the development requirements
|
- name: Install the development requirements
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user