Skip to content

Commit 92c0bb0

Browse files
Update wheels.yml
1 parent e431fcb commit 92c0bb0

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/wheels.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,17 @@ jobs:
5151
CIBW_PLATFORM: linux
5252
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
5353

54-
# Python versions to build for
54+
- name: Build wheels
55+
uses: pypa/[email protected]
56+
env:
57+
CIBW_PLATFORM: linux
58+
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
5559
CIBW_BUILD: "cp38-* cp311-*"
56-
CIBW_SKIP: "*-musllinux*" # Skip musl builds, focus on glibc
57-
58-
# # Install minimal system dependencies before building
59-
# CIBW_BEFORE_ALL_LINUX: >
60-
# yum install -y make gcc-c++ kernel-headers ||
61-
# (apt-get update && apt-get install -y build-essential linux-headers-generic)
62-
63-
# Test the built wheels
60+
CIBW_SKIP: "*-musllinux*"
6461
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"
65-
66-
# Skip testing on emulated architectures (too slow)
6762
CIBW_TEST_SKIP: "*-linux_aarch64"
63+
CIBW_BEFORE_ALL_LINUX: |
64+
yum install -y elfutils-libelf-devel zlib-devel
6865
6966
- name: Verify clean directory
7067
run: git diff --exit-code

0 commit comments

Comments
 (0)