-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dfca47
commit d80505f
Showing
3 changed files
with
48 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,26 +50,28 @@ jobs: | |
path: accelerate/dist/* | ||
|
||
wheels: | ||
name: Build architecture-specific wheels on ${{ matrix.os }} | ||
name: Build architecture-specific wheels on ${{ matrix.os }}-${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- windows-latest | ||
- macOS-latest | ||
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-13, windows-latest] # Use specific versions for clarity | ||
arch: [x86_64, arm64] | ||
exclude: | ||
- os: ubuntu-latest | ||
arch: arm64 | ||
- os: ubuntu-24.04-arm # No need to specify arch, it's already implicit | ||
arch: x86_64 # Exclude x86_64 on ARM | ||
- os: macos-latest # Exclude macOS 14-15 (Sonoma) | ||
arch: x86_64 # Exclude x86_64 explicitly | ||
- os: macos-13 # Exclude macOS 13 (Ventura) - arm64 | ||
arch: arm64 # Exclude arm64 on macOS 13 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
|
||
- name: Build wheels (develop) | ||
uses: pypa/[email protected] | ||
|
@@ -79,7 +81,8 @@ jobs: | |
output-dir: "./accelerate/dist" | ||
env: | ||
BUILD_EXTENSION: yes | ||
CIBW_SKIP: "pp*" | ||
CIBW_ARCHS_MACOS: ${{ matrix.os }}-${{ matrix.arch }} | ||
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*" | ||
|
||
- name: Build wheels (master) | ||
uses: pypa/[email protected] | ||
|
@@ -89,12 +92,13 @@ jobs: | |
output-dir: "./accelerate/dist" | ||
env: | ||
BUILD_EXTENSION: yes | ||
CIBW_SKIP: "pp*" | ||
CIBW_ARCHS_MACOS: ${{ matrix.arch }} | ||
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*" | ||
|
||
- name: Save wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: accel-binary-${{ matrix.os }} | ||
name: accel-binary-${{ matrix.os }}-${{ matrix.arch }} | ||
path: accelerate/dist/*.whl | ||
|
||
pypi-publish-accel: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#! /bin/bash | ||
#!/bin/bash | ||
|
||
ARCH=$(uname -m) | ||
if [ "$ARCH" == "x86_64" ]; then | ||
MANYLINUX="manylinux_2_28_x86_64" | ||
elif [ "$ARCH" == "aarch64" ]; then | ||
MANYLINUX="manylinux_2_28_aarch64" | ||
else | ||
echo "Unsupported architecture: $ARCH" | ||
exit 1 | ||
fi | ||
|
||
docker run \ | ||
-it \ | ||
-v`pwd`:/io \ | ||
-ephemeral \ | ||
-ePLAT=manylinux2014_x86_64 \ | ||
-v "$(pwd)":/io \ | ||
-e PLAT="$MANYLINUX" \ | ||
--rm \ | ||
quay.io/pypa/manylinux2014_x86_64 \ | ||
quay.io/pypa/"$MANYLINUX" \ | ||
/io/accelerate/_build-manylinux.sh |
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