add parallel execution script and c program to open non-existing file… #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: Run Test | |
| on: | |
| push: | |
| branches: [rust] | |
| pull_request: | |
| branches: [rust] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - ubuntu-24.04-arm | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: check bpf | |
| run: | | |
| cat /boot/config-$(uname -r) | grep BPF | |
| - name: install deps | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install gcc clang llvm libbpf-dev zlib1g-dev libelf-dev autopoint | |
| git clone --recurse-submodules https://github.com/libbpf/bpftool.git | |
| cd bpftool/src | |
| make | |
| sudo make install | |
| cd ../.. | |
| which bpftool | |
| clang --version | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: build | |
| run: | | |
| cargo build --release | |
| sudo install -o root -m 4755 target/release/trace_v3 /usr/local/bin | |
| - name: run tests | |
| run: | | |
| sudo ./tests/run-tests.sh | |