-
-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.31 KB
/
unit-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Run unit tests of llvm-jit
on:
push:
branches: "main"
pull_request:
branches: "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
container:
- ubuntu-2204
- fedora-39
runs-on: ubuntu-22.04
container:
image: "manjusakalza/bpftime-base-image:${{matrix.container}}"
options: --privileged
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install Ninja (Ubuntu)
if: ${{matrix.container == 'ubuntu-2204'}}
run:
apt install ninja-build
- name: Install Ninja (Fedora)
if: ${{matrix.container == 'fedora-39'}}
run:
dnf install -y ninja-build
- name: build
run:
|
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DBPFTIME_ENABLE_UNIT_TESTING=1 -G Ninja
cmake --build build --target all -j
- name: Run example
run: |
./build/vm-llvm-example
- name: Run tests
run: |
./build/test/unit-test/llvm_jit_tests
- name: build llvm JIT/AOT release as a standalone library
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release -G Ninja &&\
cmake --build build --target all -j