Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ jobs:
include:
- os: ubuntu-22.04
platform: manylinux_x86_64
target: x86_64-unknown-linux-gnu
- os: ubuntu-22.04
platform: manylinux_aarch64
target: aarch64-unknown-linux-gnu
ring_pre_generate_asm: "1"
cflags_aarch64: "-march=armv8-a"
- os: macos-13
platform: macos_x86_64
target: x86_64-apple-darwin
- os: macos-14
platform: macos_aarch64
target: aarch64-apple-darwin
- os: windows-2022
platform: windows_x86_64
target: x86_64-pc-windows-msvc

steps:
- uses: actions/checkout@v4
Expand All @@ -35,13 +42,15 @@ jobs:

- name: Build wheels
uses: PyO3/maturin-action@v1
env:
RING_PREGENERATE_ASM: ${{ matrix.ring_pre_generate_asm }}
CFLAGS_aarch64_unknown_linux_gnu: ${{ matrix.cflags_aarch64 }}
with:
command: build
args: --release --out dist
args: --release --out dist -F python-ffi
maturin-version: "1.5.1"
manylinux: auto
target: ${{ matrix.platform }}
features: python-ffi
target: ${{ matrix.target }}

- name: Upload wheels
uses: actions/upload-artifact@v4
Expand All @@ -64,9 +73,8 @@ jobs:
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
args: --out dist -F python-ffi
maturin-version: "1.5.1"
features: python-ffi

- name: Upload sdist
uses: actions/upload-artifact@v4
Expand Down
190 changes: 185 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ serde_json = "1.0"
tree-sitter = { version = "0.25", optional = true }
tree-sitter-javascript = { version = "0.25", optional = true }
syntect = { version = "5.2", optional = true }
pyo3 = { version = "0.21", features = ["extension-module", "abi3-py311"], optional = true }
pyo3 = { version = "0.24", features = ["extension-module", "abi3-py311"], optional = true }
wasm-bindgen = { version = "0.2.92", optional = true }
serde-wasm-bindgen = { version = "0.6", optional = true }

Expand Down
Loading