Skip to content

Commit

Permalink
TIED: too tied for manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
tcztzy committed Feb 22, 2024
1 parent 3f1676a commit cdad2f9
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,23 @@ permissions:
contents: read

jobs:
wheel:
runs-on: ${{ matrix.os }}
macos:
runs-on: macos-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
target: [x86_64, aarch64]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.target == 'aarch64' }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: '2014'
container: ghcr.io/rust-cross/manylinux2014-cross:${{ matrix.target }}
env:
# Set the C and C++ compilers to clang on manylinux
CC_${{ matrix.target }}-unknown-linux-gnu: clang
CXX_${{ matrix.target }}-unknown-linux-gnu: clang++
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand All @@ -71,7 +61,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [wheel, sdist]
needs: [macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit cdad2f9

Please sign in to comment.