Install C++ compiler for Gitea CI
Staging Backend Quality Gate / validate (pull_request) Has been cancelled
Staging Backend Quality Gate / publish (pull_request) Has been cancelled

This commit is contained in:
Jesse_Chen
2026-08-05 15:57:46 +08:00
parent 77c663b9b7
commit a3a354e88f
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -59,9 +59,12 @@ jobs:
packages+=(python3-venv)
fi
rm -rf "$venv_probe"
if ! python3 -c 'import pathlib, sysconfig; assert pathlib.Path(sysconfig.get_path("include"), "Python.h").is_file()'; then
if ! python3 -c 'import pathlib, sysconfig; assert pathlib.Path(sysconfig.get_path("include"), "Python.h").is_file()' >/dev/null 2>&1; then
packages+=(python3-dev)
fi
if ! command -v g++ >/dev/null 2>&1; then
packages+=(g++)
fi
if [ "${#packages[@]}" -gt 0 ]; then
apt-get -o Acquire::Retries=3 -o Acquire::http::Timeout=30 \
-o Acquire::https::Timeout=30 update