Skip to content

Commit e19d048

Browse files
committed
ci: add more tests for cross-compilation (#4773)
1 parent 325218f commit e19d048

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -656,14 +656,17 @@ jobs:
656656
# ubuntu x86_64 -> windows x86_64
657657
- os: "ubuntu-latest"
658658
target: "x86_64-pc-windows-gnu"
659-
flags: "-i python3.12 --features abi3 --features generate-import-lib"
660-
manylinux: off
659+
flags: "-i python3.12 --features generate-import-lib"
661660
# macos x86_64 -> aarch64
662661
- os: "macos-13" # last x86_64 macos runners
663662
target: "aarch64-apple-darwin"
664663
# macos aarch64 -> x86_64
665664
- os: "macos-latest"
666665
target: "x86_64-apple-darwin"
666+
# windows x86_64 -> aarch64
667+
- os: "windows-latest"
668+
target: "aarch64-pc-windows-msvc"
669+
flags: "-i python3.12 --features generate-import-lib"
667670
steps:
668671
- uses: actions/checkout@v4
669672
- uses: actions/setup-python@v5
@@ -677,11 +680,18 @@ jobs:
677680
- name: Setup cross-compiler
678681
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
679682
run: sudo apt-get install -y mingw-w64 llvm
680-
- uses: PyO3/maturin-action@v1
683+
- name: Compile version-specific library
684+
uses: PyO3/maturin-action@v1
681685
with:
682686
target: ${{ matrix.target }}
683687
manylinux: ${{ matrix.manylinux }}
684688
args: --release -m examples/maturin-starter/Cargo.toml ${{ matrix.flags }}
689+
- name: Compile abi3 library
690+
uses: PyO3/maturin-action@v1
691+
with:
692+
target: ${{ matrix.target }}
693+
manylinux: ${{ matrix.manylinux }}
694+
args: --release -m examples/maturin-starter/Cargo.toml --features abi3 ${{ matrix.flags }}
685695

686696
test-cross-compilation-windows:
687697
needs: [fmt]

0 commit comments

Comments
 (0)