Skip to content

Commit

Permalink
fix cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Apr 4, 2024
1 parent 1818b89 commit ad14b73
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/ltp-extension-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@ jobs:
target: x86_64
- runner: ubuntu-latest
target: x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --manifest-path python/extension/Cargo.toml --features="malloc"
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist

linux-cross:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
Expand All @@ -45,7 +68,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --manifest-path python/extension/Cargo.toml --features="malloc"
args: --release --out dist --manifest-path python/extension/Cargo.toml
sccache: 'true'
manylinux: auto
- name: Upload wheels
Expand Down Expand Up @@ -115,7 +138,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist --manifest-path python/extension/Cargo.toml --features="malloc"
args: --out dist --manifest-path python/extension/Cargo.toml
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ad14b73

Please sign in to comment.