Skip to content

Commit 173cb49

Browse files
committed
fix: handle both dnf and apt-get for Linux cross-compilation
The aarch64 cross-compilation image is Ubuntu-based (apt-get), while the x86_64 manylinux_2_28 image is AlmaLinux-based (dnf).
1 parent 5cc5111 commit 173cb49

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ jobs:
3131
args: --release --out dist
3232
sccache: 'true'
3333
manylinux: 2_28
34-
# Install build dependencies inside the manylinux_2_28 (AlmaLinux 8) container.
35-
before-script-linux: dnf install -y cmake perl-IPC-Cmd clang-devel
34+
# Install build dependencies inside the container.
35+
# x86_64 uses manylinux_2_28 (AlmaLinux/dnf), aarch64 cross uses Ubuntu (apt-get).
36+
before-script-linux: >-
37+
dnf install -y cmake perl-IPC-Cmd clang-devel ||
38+
(apt-get update && apt-get install -y cmake libclang-dev)
3639
3740
- name: Upload wheels
3841
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)