Merge pull request #26 from egmc/fix-iteration-issue #13
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| build-and-test: | |
| if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang llvm libelf-dev libzstd-dev | |
| - name: Build bpftool from source | |
| run: | | |
| git clone --depth 1 --recurse-submodules https://github.com/libbpf/bpftool.git | |
| make -C bpftool/src | |
| sudo install bpftool/src/bpftool /usr/local/bin/ | |
| - name: Build libbpf | |
| run: make build-libbpf | |
| - name: Generate vmlinux.h | |
| run: make vmlinux | |
| - name: Build eBPF program | |
| run: make ebpf | |
| - name: Run tests | |
| run: make test | |
| - name: Build binary | |
| run: make go-build |