-
Notifications
You must be signed in to change notification settings - Fork 96
71 lines (65 loc) · 1.77 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
70
71
name: Build
on:
pull_request:
env:
CTEST_OUTPUT_ON_FAILURE: true
jobs:
fsw:
runs-on: ubuntu-latest
container:
image: ivvitc/nos3-64:20250124
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:20250124
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: recursive
- name: config
run: make config
- name: build
run: make build-sim
coverage:
runs-on: ubuntu-latest
container:
image: ivvitc/nos3-64:20250124
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Configure Safe Directory
run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Update
run: apt-get update
- name: install dependencies
run: apt-get install -y gcc lcov gcovr bc
- name: config
run: make config
- name: build-test
run: |
export CFLAGS="-fprofile-arcs -ftest-coverage -g"
make build-test
make test-fsw
- name: Archive Coverage Directory
uses: actions/upload-artifact@v4
with:
name: coverage-artifacts
path: docs/coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: 040717d0-b624-470e-be41-d08720135088