If a new manylinux image isn't needed to be built, use the latest from main
This commit is contained in:
parent
08aa763619
commit
8ed2c20781
|
@ -24,6 +24,7 @@ permissions:
|
|||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: ${{ github.repository }}-manylinux2014
|
||||
FALLBACK_TAG: ghcr.io/${{ github.repository }}-manylinux2014:main
|
||||
|
||||
jobs:
|
||||
build-custom-manylinux:
|
||||
|
@ -31,6 +32,9 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
outputs:
|
||||
tag: ${{ steps.meta.outputs.labels || env.FALLBACK_TAG }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
@ -122,12 +126,6 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 #v4.6.0
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build wheels
|
||||
uses: pypa/cibuildwheel@66b46d086804a9e9782354100d96a3a445431bca # v2.14.0
|
||||
env:
|
||||
|
@ -137,7 +135,7 @@ jobs:
|
|||
CIBW_CONTAINER_ENGINE: "docker; create_args: '--volume=${{ github.workspace }}/.ccache:/.ccache'"
|
||||
# overriede before-all in pyproject.toml
|
||||
CIBW_BEFORE_ALL: ""
|
||||
CIBW_MANYLINUX_X86_64_IMAGE: ${{ steps.meta.outputs.tags }}
|
||||
CIBW_MANYLINUX_X86_64_IMAGE: ${{ needs.build-custom-manylinux.outputs.tag }}
|
||||
|
||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||
with:
|
||||
|
|
Loading…
Reference in New Issue