chore(deps): bump actions/checkout from 4 to 5 in the actions group #1939
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/build.yml" | |
- "docker/**" | |
- "tests/**" | |
- "*.sh" | |
pull_request: | |
paths: | |
- ".github/workflows/build.yml" | |
- "docker/**" | |
- "tests/**" | |
- "*.sh" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
pre_commit: | |
name: Pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- uses: pre-commit/[email protected] | |
build_matrix: | |
needs: pre_commit | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.matrix.outputs.matrix }} | |
steps: | |
- id: matrix | |
name: build matrix | |
shell: python | |
run: | | |
import os | |
import json | |
reduced = [ | |
("x86_64", "ubuntu-24.04", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")), | |
("aarch64", "ubuntu-24.04-arm", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "manylinux_2_39", "musllinux_1_2")), | |
("i686", "ubuntu-24.04", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")), | |
("armv7l", "ubuntu-24.04-arm", ("manylinux_2_31", "musllinux_1_2")), | |
("riscv64", "ubuntu-24.04", ("manylinux_2_39", "musllinux_1_2")), | |
("s390x", "ubuntu-24.04", ("musllinux_1_2",)), | |
] | |
expanded = [{"policy": policy, "platform": platform, "runner": runner} for platform, runner, policies in reduced for policy in policies] | |
print(json.dumps(expanded, indent=2)) | |
with open(os.environ["GITHUB_OUTPUT"], "at") as f: | |
f.write(f"matrix={json.dumps(expanded)}") | |
build_manylinux: | |
name: ${{ matrix.policy }}_${{ matrix.platform }} | |
needs: build_matrix | |
runs-on: ${{ matrix.runner }} | |
permissions: | |
packages: write | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: ${{ fromJson(needs.build_matrix.outputs.matrix) }} | |
env: | |
POLICY: ${{ matrix.policy }} | |
PLATFORM: ${{ matrix.platform }} | |
COMMIT_SHA: ${{ github.sha }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
with: | |
fetch-depth: 50 | |
- name: Set up QEMU | |
if: matrix.platform == 's390x' || matrix.platform == 'riscv64' | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build | |
run: ./build.sh | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux' | |
run: ./deploy.sh | |
env: | |
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
all_passed: | |
needs: [build_manylinux] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "All jobs passed" |