Install C++ compiler for Gitea CI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user