1
0
Fork 0

[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
commit e2d37bcc8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 140 additions and 126 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=(