Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Sep 4, 2024
1 parent 5f63128 commit a802a21
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,43 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.8, 3.9, '3.10', 3.11]
# exclude:
# - os: macos-latest
# python-version: 3.7
python-version: [3.8]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
args: --release --out dist --target ${{ matrix.target }} --find-interpreter
sccache: 'true'
manylinux: auto
env:
MACOSX_DEPLOYMENT_TARGET: '10.9'

# - name: Install auditwheel
# if: runner.os == 'Linux'
# run: pip install auditwheel
- name: Build universal wheel
if: matrix.os == 'ubuntu-latest'
uses: PyO3/maturin-action@v1
with:
args: --release --out dist --compatibility manylinux2014 --find-interpreter
sccache: 'true'

# - name: Repair wheels
# if: runner.os == 'Linux'
# run: |
# for whl in dist/*.whl; do
# auditwheel repair "$whl" --plat manylinux_2_28_x86_64 -w ./dist/
# rm $whl
# done
- name: Build sdist
if: matrix.os == 'ubuntu-latest'
uses: PyO3/maturin-action@v1
with:
args: --release --sdist --out dist
sccache: 'true'

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

0 comments on commit a802a21

Please sign in to comment.