Add userspace utils for Structs and maps, starting with PERF_EVENT_ARRAY #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pip | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [ubuntu-latest] | |
| python-version: ["3.8", "3.12"] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libbpf-dev \ | |
| libelf-dev \ | |
| linux-headers-generic \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build | |
| - name: Add requirements | |
| run: python -m pip install --upgrade pip wheel setuptools | |
| - name: Build and install | |
| run: pip install --verbose .[test] | |
| - name: Test import | |
| run: python -I -c "import pylibbpf; print('Import successful')" | |
| - name: Test | |
| run: python -I -m pytest -v |