3636 strategy :
3737 fail-fast : false
3838 matrix :
39- # Build for both x86_64 and aarch64
4039 arch : [x86_64, aarch64]
4140
4241 steps :
@@ -47,25 +46,19 @@ jobs:
4746 - name : Build wheels
48474948 env :
50- # Only build for Linux
5149 CIBW_PLATFORM : linux
5250 CIBW_ARCHS_LINUX : ${{ matrix.arch }}
53-
54- # Python versions to build for
5551 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
52+ CIBW_SKIP : " *-musllinux*"
6453 CIBW_TEST_COMMAND : " python -c 'import pylibbpf; print(f\" pylibbpf {pylibbpf.__version__} imported successfully\" )'"
65-
66- # Skip testing on emulated architectures (too slow)
6754 CIBW_TEST_SKIP : " *-linux_aarch64"
6855
56+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
57+ CIBW_MANYLINUX_AARCH64_IMAGE : manylinux_2_28
58+
59+ CIBW_BEFORE_ALL_LINUX : |
60+ dnf install -y elfutils-libelf-devel zlib-devel
61+
6962 - name : Verify clean directory
7063 run : git diff --exit-code
7164 shell : bash
8275 runs-on : ubuntu-latest
8376 if : github.event_name == 'release' && github.event.action == 'published'
8477 permissions :
85- # IMPORTANT: this permission is mandatory for trusted publishing
8678 id-token : write
8779 environment :
8880 name : pypi
89- # url: https://pypi.org/project/pylibbpf/${{ github.event.release.name }}
9081
9182 steps :
9283 - name : Download all artifacts
0 commit comments