Skip to content

Commit

Permalink
build: 📦 add additional aarch64 builds and use ubicloud
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Jan 31, 2024
1 parent d7b6b03 commit 97fe249
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 21 deletions.
63 changes: 42 additions & 21 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
matrix:
include:
# TODO: Windows support
# 🐧 manylinux2014 x86_64
# 🐧 manylinux x86_64
- os: ubuntu-22.04
python: "3.9"
python_id: cp39
Expand All @@ -88,7 +88,25 @@ jobs:
python_id: cp312
platform_id: manylinux_x86_64

# 🐧 manylinux2014 PyPy
# 🐧 manylinux aarch64
- os: ubicloud-standard-2-arm
python: "3.9"
python_id: cp39
platform_id: manylinux_aarch64
- os: ubicloud-standard-2-arm
python: "3.10"
python_id: cp310
platform_id: manylinux_aarch64
- os: ubicloud-standard-2-arm
python: "3.11"
python_id: cp311
platform_id: manylinux_aarch64
- os: ubicloud-standard-2-arm
python: "3.12"
python_id: cp312
platform_id: manylinux_aarch64

# 🐧 manylinux2014 PyPy x86_64
- os: ubuntu-22.04
python: "3.9"
python_id: pp39
Expand All @@ -98,22 +116,14 @@ jobs:
python_id: pp310
platform_id: manylinux_x86_64

# 🐧 manylinux2014 aarch64
- os: ubuntu-22.04
# 🐧 manylinux2014 PyPy ARM
- os: ubicloud-standard-2-arm
python: "3.9"
python_id: cp39
python_id: pp39
platform_id: manylinux_aarch64
- os: ubuntu-22.04
- os: ubicloud-standard-2-arm
python: "3.10"
python_id: cp310
platform_id: manylinux_aarch64
- os: ubuntu-22.04
python: "3.11"
python_id: cp311
platform_id: manylinux_aarch64
- os: ubuntu-22.04
python: "3.12"
python_id: cp312
python_id: pp310
platform_id: manylinux_aarch64

# 🦀 musllinux x86_64
Expand All @@ -135,19 +145,19 @@ jobs:
platform_id: musllinux_x86_64

# 🦀 musllinux ARM
- os: ubuntu-22.04
- os: ubicloud-standard-2-arm
python: "3.9"
python_id: cp39
platform_id: musllinux_aarch64
- os: ubuntu-22.04
- os: ubicloud-standard-2-arm
python: "3.10"
python_id: cp310
platform_id: musllinux_aarch64
- os: ubuntu-22.04
- os: ubicloud-standard-2-arm
python: "3.11"
python_id: cp311
platform_id: musllinux_aarch64
- os: ubuntu-22.04
- os: ubicloud-standard-2-arm
python: "3.12"
python_id: cp312
platform_id: musllinux_aarch64
Expand Down Expand Up @@ -197,11 +207,22 @@ jobs:
with:
fetch-depth: 0

- uses: pdm-project/setup-pdm@v4
- if: ${{ !endsWith(matrix.os, '-arm') }}
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python }}
python-version: "${{ matrix.python }}"
cache: true

- if: ${{ endsWith(matrix.os, '-arm') }}
uses: deadsnakes/[email protected]
with:
python-version: "${{ matrix.python }}"

- if: ${{ endsWith(matrix.os, '-arm') }}
name: Install PDM
run: |
curl -sSL https://pdm-project.org/install-pdm.py | python3 -
- name: Install Python deps
run: |
pdm install -G build -G release --no-self --no-lock -v
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ test-skip = "*-*linux_{ppc64le,s390x} *-macosx_arm64"
manylinux-x86_64-image = "ghcr.io/darvid/python_hyperscan_manylinux_2_28_x86_64:2024-01-27-1e3cb40"
manylinux-aarch64-image = "ghcr.io/darvid/python_hyperscan_manylinux_2_28_x86_64:2024-01-27-1e3cb40"
manylinux-pypy_x86_64-image = "ghcr.io/darvid/python_hyperscan_manylinux_2_28_x86_64:2024-01-27-1e3cb40"
manylinux-pypy_aarch64-image = "ghcr.io/darvid/python_hyperscan_manylinux_2_28_aarch64:2024-01-27-1e3cb40"
musllinux-x86_64-image = "ghcr.io/darvid/python_hyperscan_musllinux_1_1_x86_64:2024-01-27-1e3cb40"
musllinux-aarch64-image = "ghcr.io/darvid/python_hyperscan_musllinux_1_1_x86_64:2024-01-27-1e3cb40"

Expand Down

0 comments on commit 97fe249

Please sign in to comment.