Skip to content

Commit ad6e234

Browse files
authored
ci: Remove lerc from musllinux wheel build (#246)
* ci: Remove musllinux aarch64 wheel build * Remove lerc from musllinux
1 parent 53d1864 commit ad6e234

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

.github/workflows/python-wheels.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ jobs:
9292
target: x86_64
9393
- runner: ubuntu-latest
9494
target: x86
95-
- runner: ubuntu-latest
96-
target: aarch64
9795
steps:
9896
- uses: actions/checkout@v4
9997
with:
@@ -112,35 +110,17 @@ jobs:
112110
uses: PyO3/maturin-action@v1
113111
with:
114112
target: ${{ matrix.platform.target }}
115-
args: --release --out dist -i 3.13 --features abi3-py311 --features extension-module --manifest-path python/Cargo.toml
113+
args: --release --out dist -i 3.13 --no-default-features --features abi3-py311 --features extension-module --manifest-path python/Cargo.toml
116114
sccache: "true"
117115
manylinux: musllinux_1_2
118-
before-script-linux: |
119-
# Install libclang for bindgen (required by lerc-sys)
120-
if command -v apk &> /dev/null; then
121-
apk add clang-dev
122-
elif command -v yum &> /dev/null; then
123-
yum install -y clang-devel
124-
elif command -v apt-get &> /dev/null; then
125-
apt-get update && apt-get install -y libclang-dev
126-
fi
127116

128117
- name: Build version-specific wheels
129118
uses: PyO3/maturin-action@v1
130119
with:
131120
target: ${{ matrix.platform.target }}
132-
args: --release --out dist -i 3.10 -i pypy3.11 --features extension-module --manifest-path python/Cargo.toml
121+
args: --release --out dist -i 3.10 -i pypy3.11 --no-default-features --features extension-module --manifest-path python/Cargo.toml
133122
sccache: "true"
134123
manylinux: musllinux_1_2
135-
before-script-linux: |
136-
# Install libclang for bindgen (required by lerc-sys)
137-
if command -v apk &> /dev/null; then
138-
apk add clang-dev
139-
elif command -v yum &> /dev/null; then
140-
yum install -y clang-devel
141-
elif command -v apt-get &> /dev/null; then
142-
apt-get update && apt-get install -y libclang-dev
143-
fi
144124

145125
- name: Upload wheels
146126
uses: actions/upload-artifact@v4

python/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ crate-type = ["cdylib"]
1919
[features]
2020
abi3-py311 = ["pyo3/abi3-py311"]
2121
extension-module = ["pyo3/extension-module"]
22+
lerc = ["async-tiff/lerc"]
23+
default = ["lerc"]
2224

2325
[dependencies]
24-
async-tiff = { path = "../", features = ["jpeg2k", "webp", "lerc", "lzma"] }
26+
async-tiff = { path = "../", features = ["jpeg2k", "webp", "lzma"] }
2527
async-trait = "0.1.89"
2628
bytes = "1.10.1"
2729
futures = "0.3.31"

0 commit comments

Comments
 (0)