-
Notifications
You must be signed in to change notification settings - Fork 2
🚸 Allow configuring the runners enabled for Python packaging #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: burgholzer <[email protected]>
name: Build runner matrix | ||
run: | | ||
matrix='[]' | ||
if [ "${{ inputs.enable-ubuntu2404 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-ubuntu2404 }
if [ "${{ inputs.enable-ubuntu2404 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-24.04"}]') | ||
fi | ||
if [ "${{ inputs.enable-ubuntu2204 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-ubuntu2204 }
if [ "${{ inputs.enable-ubuntu2204 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-22.04"}]') | ||
fi | ||
if [ "${{ inputs.enable-ubuntu2404-arm }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-ubuntu2404-arm }
if [ "${{ inputs.enable-ubuntu2404-arm }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-24.04-arm"}]') | ||
fi | ||
if [ "${{ inputs.enable-ubuntu2204-arm }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-ubuntu2204-arm }
if [ "${{ inputs.enable-ubuntu2204-arm }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "ubuntu-22.04-arm"}]') | ||
fi | ||
if [ "${{ inputs.enable-macos13 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-macos13 }
if [ "${{ inputs.enable-macos13 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-13"}]') | ||
fi | ||
if [ "${{ inputs.enable-macos14 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-macos14 }
if [ "${{ inputs.enable-macos14 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-14"}]') | ||
fi | ||
if [ "${{ inputs.enable-macos15 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-macos15 }
if [ "${{ inputs.enable-macos15 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "macos-15"}]') | ||
fi | ||
if [ "${{ inputs.enable-windows2022 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-windows2022 }
if [ "${{ inputs.enable-windows2022 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "windows-2022"}]') | ||
fi | ||
if [ "${{ inputs.enable-windows2025 }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
${ inputs.enable-windows2025 }
if [ "${{ inputs.enable-windows2025 }}" = "true" ]; then | ||
matrix=$(echo $matrix | jq '. + [{"runs-on": "windows-2025"}]') | ||
fi | ||
if [ "${{ inputs.enable-windows11-arm }}" = "true" ]; then |
Check warning
Code scanning / CodeQL
Code injection Medium
This follows up on #95 and enables the configuration of the runners used in the Python packaging workflow.
By default, the following runners are enabled:
The following runners can be enabled via opt-in:
Compared to the latest release version of the workflows, this does not change any of the default behavior.
However, it allows you to opt-in to more modern runners. Most notably, the new Windows 11 ARM runners.