Skip to content

Commit

Permalink
Override Python versions in manual workflow for CentOS 7 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpittwood committed Nov 13, 2023
1 parent 0ae2c4d commit e09677a
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/build-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,6 @@ on:
- preview
- daily
- release
r_version:
description: "Primary R version"
required: false
default: "4.2.3"
r_version_alt:
description: "Alternate R version"
required: false
default: "4.1.3"
python_version:
description: "Primary Python version"
required: false
default: "3.9.17"
python_version_alt:
description: "Alternate Python version"
required: false
default: "3.8.17"
use_s3_download_url:
description: "Force build to download binaries directly from S3 where applicable."
required: false
Expand Down Expand Up @@ -109,9 +93,16 @@ jobs:
id: get-build-args
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
VERSION_INPUTS="R_VERSION=${{ inputs.r_version }} R_VERSION_ALT=${{ inputs.r_version_alt }} PYTHON_VERSION=${{ inputs.python_version }} PYTHON_VERSION_ALT=${{ inputs.python_version_alt }}"
ARGS_CMD=""
USE_S3_DOWNLOAD_URL=""
VERSION_OVERRIDES=""
if [[ "${{inputs.os}}" == "centos7" ]]; then
# FIXME(ianpittwood): This is probably a silly way of doing this. We don't have CentOS builds for later
# Python versions so we need to override them. This is done via matrix in the release CI
# but we don't have that here. We're also limited by the 10 input cap so these can't be
# passed by the user alongside R versions as I would've liked to do.
VERSION_OVERRIDES="PYTHON_VERSION=3.9.14 PYTHON_VERSION_ALT=3.8.15"
fi
if [[ "${{ inputs.type }}" == "release" ]]; then
ARGS_CMD="get-product-args"
if [[ "${{ inputs.use_s3_download_url }}" == "true" ]]; then
Expand All @@ -122,7 +113,7 @@ jobs:
fi
BUILD_ARGS=$( \
just -f ci.Justfile \
${VERSION_INPUTS} \
${VERSION_OVERRIDES} \
${ARGS_CMD} \
${{ inputs.product }} \
${{ inputs.os }} \
Expand Down

0 comments on commit e09677a

Please sign in to comment.