Compare commits

...

2 Commits

Author SHA1 Message Date
23133eb802
Fix build matrix and macOS target 2024-06-02 17:43:33 -07:00
0448dbe6e1
Update CIBuildWheel 2024-06-02 17:32:00 -07:00

View File

@ -45,15 +45,13 @@ jobs:
path: dist/*.tar.gz path: dist/*.tar.gz
build-wheels: build-wheels:
name: Build Wheels on ${{ matrix.os }} ${{ matrix.arch[0] }} name: Build Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ macos-11, windows-latest, ubuntu-latest ] # macos-13 is an intel runner, macos-14 is apple silicon
arch: [ ['x86', 'x86_64', 'AMD64', 'x86_64' ] ] #[suffix, mac, windows, linux] arch names os: [ubuntu-latest, windows-latest, macos-13, macos-14]
include: linux_arch: [ 'x86_64' ] #[suffix, mac, windows, linux] arch names
- os: ubuntu-latest
arch: [ 'ARM', 'arm64', 'ARM64', 'aarch64' ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -71,17 +69,17 @@ jobs:
sudo tar fvxz openmp-*.tar.gz -C / sudo tar fvxz openmp-*.tar.gz -C /
- name: Install QEMU - name: Install QEMU
# install QEMU if building for arm linux # install QEMU if building for linux
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
if: runner.os == 'linux' && matrix.arch[3] == 'aarch64' if: runner.os == 'linux'
with: with:
platforms: arm64 platforms: arm64
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.11.2 uses: pypa/cibuildwheel@v2.18.1
env: env:
MACOSX_DEPLOYMENT_TARGET: "10.15" MACOSX_DEPLOYMENT_TARGET: "12"
CIBW_ARCHS_LINUX: ${{ matrix.arch[3] }} CIBW_ARCHS_LINUX: 'x86_64 aarch64'
- name: Upload Wheels - name: Upload Wheels
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -139,4 +137,4 @@ jobs:
name: ${{ env.VERSION_TITLE }} name: ${{ env.VERSION_TITLE }}
body_path: RELEASE.md body_path: RELEASE.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}