-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (33 loc) · 1.11 KB
/
build_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
name: x86 Make CI
on: "workflow_call"
jobs:
makefile:
strategy:
matrix:
backend: ["", "GUEST_BACKEND=0", "HOST_BACKEND=0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: install openssl and valgrind for running test script
run: sudo apt-get update && sudo apt-get install -y openssl libssl-dev libmbedtls-dev
- name: run test cases
run: make ${{ matrix.backend }} check
cmake:
strategy:
matrix:
backend: ["", "-DGUEST_BACKEND=0", "-DHOST_BACKEND=0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: install openssl and valgrind for running test script
run: sudo apt-get update && sudo apt-get install -y openssl libssl-dev libmbedtls-dev cmake
- name: generate cmake build
run: cmake -Bbuild . -DUSE_ASAN=ON -DCMAKE_BUILD_TYPE=Debug ${{ matrix.backend }}
- name: run cmake build
run: cmake --build build
- name: run test cases
run: make check SECVAR_TOOL=$(pwd)/build/secvarctl