Skip to content

Commit

Permalink
Python 3.12 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Mar 21, 2024
1 parent dd83480 commit ea33d1c
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build wheels legacy
name: Build wheels

on:
push:
Expand All @@ -10,7 +10,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.12']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2024-02-04
target: aarch64-apple-darwin
profile: minimal
default: true
Expand All @@ -29,7 +29,7 @@ jobs:
uses: messense/maturin-action@v1
with:
target: x86_64
rust-toolchain: nightly
rust-toolchain: nightly-2024-02-04
args: -i python --release --out dist
- name: Install built wheel - x86_64
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
uses: messense/maturin-action@v1
with:
args: -i python --release --universal2 --out dist
rust-toolchain: nightly
rust-toolchain: nightly-2024-02-04
- name: Install built wheel - universal2
if: ${{ matrix.python-version != '3.7' }}
run: |
Expand All @@ -49,12 +49,11 @@ jobs:
with:
name: wheels
path: dist

windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.12']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
target: [x64, x86]
steps:
- uses: actions/checkout@v2
Expand All @@ -67,7 +66,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2024-02-04
profile: minimal
default: true
- name: Build
Expand All @@ -78,10 +77,10 @@ jobs:
with:
target: ${{ matrix.target }}
args: -i python --release --out dist
rust-toolchain: nightly
rust-toolchain: nightly-2024-02-04
- name: Install built wheel
run: |
pip install py-sr25519-bindings --no-index --find-links dist --force-reinstall
pip install py-ed25519-zebra-bindings --no-index --find-links dist --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
Expand All @@ -92,14 +91,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
target: [x86_64, i686]
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2024-02-04
profile: minimal
default: true
- name: Build
Expand All @@ -111,7 +110,7 @@ jobs:
uses: messense/maturin-action@v1
with:
target: ${{ matrix.target }}
rust-toolchain: nightly
rust-toolchain: nightly-2024-02-04
manylinux: auto
args: -i python${{ matrix.python-version }} --release --out dist
- name: Upload wheels
Expand All @@ -126,17 +125,48 @@ jobs:

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y"
CIBW_ARCHS_LINUX: "auto64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "*-musllinux_x86_64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* cp39-* cp310-*"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*"

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.9.0
with:
output-dir: dist


- uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

aarch64_wheels:
name: Build wheels for aarch64 linux
runs-on: ubuntu-latest

env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y"
CIBW_ARCHS_LINUX: "aarch64"
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
CIBW_BUILD: "*-musllinux_aarch64 *-manylinux_aarch64"
CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*"

steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build wheels
uses: pypa/cibuildwheel@v2.9.0
with:
output-dir: dist

Expand All @@ -146,34 +176,4 @@ jobs:
name: wheels
path: dist

# aarch64_wheels:
# name: Build wheels for aarch64 linux
# runs-on: ubuntu-latest
#
# env:
# CIBW_BUILD_VERBOSITY: 1
# CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y"
# CIBW_ARCHS_LINUX: "aarch64"
# CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
# CIBW_BUILD: "*-musllinux_aarch64 *-manylinux_aarch64"
# CIBW_SKIP: "cp27-* cp34-* cp35-* "
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# with:
# platforms: arm64
#
# - name: Build wheels
# uses: pypa/cibuildwheel@v2.11.2
# with:
# output-dir: dist
#
#
# - uses: actions/upload-artifact@v3
# with:
# name: wheels
# path: dist

0 comments on commit ea33d1c

Please sign in to comment.