add test for json import and export #78
Workflow file for this run
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: Run unit tests of bpftime-runtime | |
on: | |
push: | |
branches: "*" | |
pull_request: | |
# Why wildcard? Because we want to see test results when examing prs from non-master branches.. | |
branches: "*" | |
jobs: | |
build-test-target-and-run: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies | |
run: | | |
sudo apt-get install binutils-dev libboost1.74-all-dev libelf-dev zlib1g-dev libyaml-cpp-dev gcc-12 g++-12 llvm | |
- name: Build the target | |
run: | | |
CC=gcc-12 CXX=g++-12 make build-unit-test | |
- name: Run the unit test | |
run: | | |
make unit-test |