Skip to content

Commit

Permalink
Remove manylinux1 build and add manylinux2.28 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisstaite committed Oct 25, 2023
1 parent f1dc15d commit 3824d91
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ on:

jobs:

build_linux1_64:
build_linux2_24_64:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Execute the build
uses: docker://quay.io/pypa/manylinux1_x86_64
uses: docker://quay.io/pypa/manylinux_2_24_x86_64
with:
entrypoint: bash
args: /github/workspace/.github/workflows/build.sh
- name: Archive built wheels
uses: actions/upload-artifact@v2
with:
name: manylinux1_64
name: manylinux2_24_64
path: build/*.whl
if-no-files-found: error

publish_linux1_64:
publish_linux2_24_64:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build_linux1_64 ]
needs: [ build_linux2_24_64 ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
id: download
with:
name: manylinux1_64
name: manylinux2_24_64

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -45,32 +45,32 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ steps.download.outputs.download-path }}

build_linux1_32:
build_linux2_24_32:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Execute the build
uses: docker://quay.io/pypa/manylinux1_i686
uses: docker://quay.io/pypa/manylinux_2_24_i686
with:
entrypoint: linux32
args: bash /github/workspace/.github/workflows/build.sh
- name: Archive built wheels
uses: actions/upload-artifact@v2
with:
name: manylinux1_32
name: manylinux2_24_32
path: build/*.whl
if-no-files-found: error

publish_linux1_32:
publish_linux2_24_32:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build_linux1_32 ]
needs: [ build_linux2_24_32 ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
id: download
with:
name: manylinux1_32
name: manylinux2_24_32

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -79,32 +79,38 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ steps.download.outputs.download-path }}

build_linux2_24_64:
build_linux2_24_aarch64:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up emulation
uses: docker/setup-qemu-action@v2
with:
platforms: aarch64

- name: Execute the build
uses: docker://quay.io/pypa/manylinux_2_24_x86_64
uses: docker://quay.io/pypa/manylinux_2_24_aarch64
with:
entrypoint: bash
args: /github/workspace/.github/workflows/build.sh
- name: Archive built wheels
uses: actions/upload-artifact@v2
with:
name: manylinux2_24_64
name: manylinux2_24_aarch64
path: build/*.whl
if-no-files-found: error

publish_linux2_24_64:
publish_linux2_24_aarch64:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build_linux2_24_64 ]
needs: [ build_linux2_24_aarch64 ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
id: download
with:
name: manylinux2_24_64
name: manylinux2_24_aarch64

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -113,32 +119,32 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ steps.download.outputs.download-path }}

build_linux2_24_32:
build_linux2_28_64:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Execute the build
uses: docker://quay.io/pypa/manylinux_2_24_i686
uses: docker://quay.io/pypa/manylinux_2_28_x86_64
with:
entrypoint: linux32
args: bash /github/workspace/.github/workflows/build.sh
entrypoint: bash
args: /github/workspace/.github/workflows/build.sh
- name: Archive built wheels
uses: actions/upload-artifact@v2
with:
name: manylinux2_24_32
name: manylinux2_28_64
path: build/*.whl
if-no-files-found: error

publish_linux2_24_32:
publish_linux2_28_64:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build_linux2_24_32 ]
needs: [ build_linux2_28_64 ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
id: download
with:
name: manylinux2_24_32
name: manylinux2_28_64

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -147,7 +153,7 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: ${{ steps.download.outputs.download-path }}

build_linux2_24_aarch64:
build_linux2_28_aarch64:
runs-on: ubuntu-latest

steps:
Expand All @@ -159,26 +165,26 @@ jobs:
platforms: aarch64

- name: Execute the build
uses: docker://quay.io/pypa/manylinux_2_24_aarch64
uses: docker://quay.io/pypa/manylinux_2_28_aarch64
with:
entrypoint: bash
args: /github/workspace/.github/workflows/build.sh
- name: Archive built wheels
uses: actions/upload-artifact@v2
with:
name: manylinux2_24_aarch64
name: manylinux2_28_aarch64
path: build/*.whl
if-no-files-found: error

publish_linux2_24_aarch64:
publish_linux2_28_aarch64:
if: github.event_name == 'release' && github.event.action == 'created'
needs: [ build_linux2_24_aarch64 ]
needs: [ build_linux2_28_aarch64 ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
id: download
with:
name: manylinux2_24_aarch64
name: manylinux2_28_aarch64

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 3824d91

Please sign in to comment.