[build] Refactor Linux build jobs (#14275)

Authored by: bashonly
This commit is contained in:
bashonly
2025-09-13 16:20:28 -05:00
committed by GitHub
parent eb4b3a5fc7
commit e2d37bcc8e
4 changed files with 141 additions and 127 deletions

View File

@@ -1,16 +1,17 @@
#!/bin/bash
set -exuo pipefail
if [[ -z "${USE_PYTHON_VERSION:-}" ]]; then
USE_PYTHON_VERSION="3.13"
if [[ -z "${PYTHON_VERSION:-}" ]]; then
PYTHON_VERSION="3.13"
echo "Defaulting to using Python ${PYTHON_VERSION}"
fi
function runpy {
"/opt/shared-cpython-${USE_PYTHON_VERSION}/bin/python${USE_PYTHON_VERSION}" "$@"
"/opt/shared-cpython-${PYTHON_VERSION}/bin/python${PYTHON_VERSION}" "$@"
}
function venvpy {
"python${USE_PYTHON_VERSION}" "$@"
"python${PYTHON_VERSION}" "$@"
}
INCLUDES=(