Skip to content

Commit fc09b3d

Browse files
committed
Workflow cleanups
1 parent 35a3bcb commit fc09b3d

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/build-release.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ permissions: {}
4141

4242
# Set from inputs for workflow_dispatch, or set defaults to test push/PR events
4343
env:
44-
GIT_REMOTE: ${{ github.event.inputs.git_remote || 'python' }}
45-
GIT_COMMIT: ${{ github.event.inputs.git_commit || '4f8bb3947cfbc20f970ff9d9531e1132a9e95396' }}
46-
CPYTHON_RELEASE: ${{ github.event.inputs.cpython_release || '3.13.2' }}
44+
GIT_REMOTE: ${{ github.event.inputs.git_remote || 'mhsmith' }}
45+
GIT_COMMIT: ${{ github.event.inputs.git_commit || 'c9700e47b6bf98f6ca2e60ecdbee15ba228dcc7c' }}
46+
CPYTHON_RELEASE: ${{ github.event.inputs.cpython_release || '3.15.992' }}
4747

4848
jobs:
4949
verify-input:
5050
runs-on: ubuntu-24.04
5151
timeout-minutes: 5
5252
outputs:
53-
# Needed because env vars are not available in the build-docs check below
53+
# Needed because env vars are not available in "if" conditions
5454
cpython_release: ${{ env.CPYTHON_RELEASE }}
55+
cpython_branch: ${{ steps.get-branch.outputs.branch }}
5556
steps:
5657
- name: "Workflow run information"
5758
run: |
@@ -74,6 +75,11 @@ jobs:
7475
exit 1
7576
fi
7677
78+
- name: "Get CPython branch"
79+
id: get-branch
80+
run: |
81+
echo "branch=$(echo "$CPYTHON_RELEASE" | cut -d . -f 1-2)" >> "$GITHUB_OUTPUT"
82+
7783
build-source:
7884
runs-on: ubuntu-24.04
7985
timeout-minutes: 15
@@ -191,29 +197,21 @@ jobs:
191197
./bin/python3 -m test -uall
192198
193199
build-android:
200+
name: build-android (${{ matrix.arch }})
194201
needs:
195202
- verify-input
203+
if: fromJSON(needs.verify-input.outputs.cpython_branch) >= 3.14
196204

197-
# Android binary releases began in Python 3.14.
198-
if: |
199-
!(
200-
startsWith(needs.verify-input.outputs.cpython_release, '3.9.') ||
201-
startsWith(needs.verify-input.outputs.cpython_release, '3.10.') ||
202-
startsWith(needs.verify-input.outputs.cpython_release, '3.11.') ||
203-
startsWith(needs.verify-input.outputs.cpython_release, '3.12.') ||
204-
startsWith(needs.verify-input.outputs.cpython_release, '3.13.')
205-
)
206-
timeout-minutes: 60
207205
strategy:
208206
matrix:
209-
arch: [aarch64, x86_64]
210207
include:
211208
- arch: aarch64
212209
runs-on: macos-15
213210
- arch: x86_64
214211
runs-on: ubuntu-24.04
215212

216213
runs-on: ${{ matrix.runs-on }}
214+
timeout-minutes: 60
217215
env:
218216
triplet: ${{ matrix.arch }}-linux-android
219217
steps:

0 commit comments

Comments
 (0)