[pre-commit.ci] pre-commit autoupdate #1193
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: Smoke Test | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| Smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v6 | |
| - name: Install packages | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y \ | |
| build-essential libbsd-dev libelf-dev libjson-c-dev \ | |
| libnl-3-dev libnl-cli-3-dev libnuma-dev libpcap-dev \ | |
| pkg-config wget python3-pip libmosquitto-dev | |
| - name: Install latest Meson (via pip) | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip install --user meson | |
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| - name: Install libbpf | |
| run: | | |
| wget -q -O - https://github.com/libbpf/libbpf/archive/refs/tags/v0.5.0.tar.gz \ | |
| | tar -xzC "${GITHUB_WORKSPACE}" \ | |
| && sudo make -j -C "${GITHUB_WORKSPACE}/libbpf-0.5.0/src" install \ | |
| && sudo rm -rf "${GITHUB_WORKSPACE}/libbpf-0.5.0" | |
| - name: Build | |
| run: make | |
| - name: Short test | |
| run: meson test -C builddir --suite short | |
| - name: Upload testlog | |
| uses: actions/upload-artifact@v7 | |
| if: success() || failure() | |
| with: | |
| name: testlog.txt | |
| path: ${{ github.workspace }}/builddir/meson-logs/testlog.txt |