-
Notifications
You must be signed in to change notification settings - Fork 90
69 lines (64 loc) · 1.7 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build
on:
push:
pull_request:
env:
CTEST_OUTPUT_ON_FAILURE: true
jobs:
fsw:
runs-on: ubuntu-latest
container:
image: ivvitc/nos3-64:20241010
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: config
run: make config
- name: build
run: make build-test
- name: test
run: make test-fsw
sim:
runs-on: ubuntu-latest
container:
image: ivvitc/nos3-64:20241010
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: config
run: make config
- name: build
run: make build-sim
sample:
runs-on: ubuntu-latest
container:
image: ivvitc/nos3-64:20241010
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: Update
run: apt-get update
- name: install dependencies
run: apt-get install -y gcc lcov
- name: config
run: make config
- name: build-test
run: make build-test
- name: sample
run: make coverage-sample
- name: Generate Coverage Report
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info './*' --output-file coverage.info
genhtml coverage.info --output-directory coverage
- name: Upload Coverage Report as Artifact
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage