fix: log runtime output to env var "BPFTIME_LOG_OUTPUT" #938
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: Build and test runtime for options | |
on: | |
workflow_dispatch: | |
push: | |
branches: "*" | |
pull_request: | |
branches: "master" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
container: | |
- ubuntu-2204 | |
- fedora-39 | |
container: | |
image: "manjusakalza/bpftime-base-image:${{matrix.container}}" | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Build debug with daemon with llvm | |
run: | | |
cmake -DBPFTIME_LLVM_JIT=YES -DBPFTIME_ENABLE_UNIT_TESTING=YES -DCMAKE_BUILD_TYPE=Debug -DBUILD_BPFTIME_DAEMON=YES -B build | |
cmake --build build --config Debug -j$(nproc) | |
- name: Test Runtime | |
run: ./build/runtime/unit-test/bpftime_runtime_tests | |
- name: build all release with mpk enable and llvm | |
run: | | |
rm -rf build | |
cmake -Bbuild -DBPFTIME_LLVM_JIT=YES -DBPFTIME_ENABLE_UNIT_TESTING=YES -DBPFTIME_ENABLE_MPK=YES -DCMAKE_BUILD_TYPE=Debug | |
cmake --build build --config Debug --target bpftime_runtime_tests -j$(nproc) | |
- name: build runtime using ubpf | |
run: | | |
rm -rf build | |
cmake -Bbuild -DBPFTIME_LLVM_JIT=NO -DBPFTIME_ENABLE_UNIT_TESTING=YES | |
cmake --build build -j$(nproc) | |
- name: test runtime with ubpf | |
run: ./build/runtime/unit-test/bpftime_runtime_tests | |
- name: build runtime static lib | |
run: | | |
rm -rf build | |
cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBPFTIME_BUILD_STATIC_LIB=ON | |
cmake --build build --config RelWithDebInfo --target install -j$(nproc) | |