Update python dependencies (#1512) #1122
This file contains 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: | |
inputs: | |
useCache: | |
description: Use GHA cache | |
type: boolean | |
required: false | |
default: true | |
push: | |
branches-ignore: | |
- "update-dependencies-pr" | |
paths: | |
- ".github/workflows/build.yml" | |
- "docker/**" | |
- "*.sh" | |
pull_request: | |
paths: | |
- ".github/workflows/build.yml" | |
- "docker/**" | |
- "build.sh" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
build_manylinux: | |
name: ${{ matrix.policy }}_${{ matrix.platform }} | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
policy: ["manylinux2014", "musllinux_1_1", "musllinux_1_2"] | |
platform: ["i686", "x86_64"] | |
include: | |
- policy: "manylinux_2_28" | |
platform: "x86_64" | |
env: | |
POLICY: ${{ matrix.policy }} | |
PLATFORM: ${{ matrix.platform }} | |
COMMIT_SHA: ${{ github.sha }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up emulation | |
if: matrix.platform != 'i686' && matrix.platform != 'x86_64' | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: ${{ matrix.platform }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Setup cache | |
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache) | |
uses: actions/cache@v3 | |
with: | |
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/* | |
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-${{ hashFiles('docker/**') }} | |
restore-keys: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}- | |
- 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" |