ci: minimal CI testing setup #27
This file contains 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: USDT CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install prerequisites | |
run: curl -o bpftrace https://github.com/bpftrace/bpftrace/releases/download/v0.21.2/bpftrace && chmod +x bpftrace && ./bpftrace --version | |
- name: Build (static) | |
run: make SHARED=0 BPFTRACE=./bpftrace -C tests -j$(nproc) build | |
- name: Build (shared) | |
run: make SHARED=1 BPFTRACE=./bpftrace -C tests -j$(nproc) build | |
- name: Test (static) | |
run: make BPF_TRACE=./bpftrace SHARED=0 -C tests test | |
- name: Test (shared) | |
run: make BPF_TRACE=./bpftrace SHARED=1 -C tests test |