mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-03-22 13:11:28 +00:00
Update wheels.yml
This commit is contained in:
23
.github/workflows/wheels.yml
vendored
23
.github/workflows/wheels.yml
vendored
@ -36,7 +36,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Build for both x86_64 and aarch64
|
|
||||||
arch: [x86_64, aarch64]
|
arch: [x86_64, aarch64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -47,25 +46,19 @@ jobs:
|
|||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
uses: pypa/cibuildwheel@v2.17
|
uses: pypa/cibuildwheel@v2.17
|
||||||
env:
|
env:
|
||||||
# Only build for Linux
|
|
||||||
CIBW_PLATFORM: linux
|
CIBW_PLATFORM: linux
|
||||||
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
|
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
|
||||||
|
|
||||||
# Python versions to build for
|
|
||||||
CIBW_BUILD: "cp38-* cp311-*"
|
CIBW_BUILD: "cp38-* cp311-*"
|
||||||
CIBW_SKIP: "*-musllinux*" # Skip musl builds, focus on glibc
|
CIBW_SKIP: "*-musllinux*"
|
||||||
|
|
||||||
# # Install minimal system dependencies before building
|
|
||||||
# CIBW_BEFORE_ALL_LINUX: >
|
|
||||||
# yum install -y make gcc-c++ kernel-headers ||
|
|
||||||
# (apt-get update && apt-get install -y build-essential linux-headers-generic)
|
|
||||||
|
|
||||||
# Test the built wheels
|
|
||||||
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"
|
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"
|
||||||
|
|
||||||
# Skip testing on emulated architectures (too slow)
|
|
||||||
CIBW_TEST_SKIP: "*-linux_aarch64"
|
CIBW_TEST_SKIP: "*-linux_aarch64"
|
||||||
|
|
||||||
|
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
||||||
|
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
|
||||||
|
|
||||||
|
CIBW_BEFORE_ALL_LINUX: |
|
||||||
|
dnf install -y elfutils-libelf-devel zlib-devel
|
||||||
|
|
||||||
- name: Verify clean directory
|
- name: Verify clean directory
|
||||||
run: git diff --exit-code
|
run: git diff --exit-code
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -82,11 +75,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'release' && github.event.action == 'published'
|
if: github.event_name == 'release' && github.event.action == 'published'
|
||||||
permissions:
|
permissions:
|
||||||
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
||||||
id-token: write
|
id-token: write
|
||||||
environment:
|
environment:
|
||||||
name: pypi
|
name: pypi
|
||||||
# url: https://pypi.org/project/pylibbpf/${{ github.event.release.name }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user