-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (59 loc) · 1.69 KB
/
Copy pathbuild.yml
File metadata and controls
64 lines (59 loc) · 1.69 KB
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
name: Build Projects
on:
push:
branches:
- main
pull_request:
branches:
- '*'
schedule:
- cron: "0 0 * * 1"
env:
test_roots: |
app/backplane/deployment_module
app/backplane/power_module
app/backplane/radio_module
app/backplane/sensor_module
app/ground/receiver_module
app/ground/tftp_server
app/payload/control_freak/flight-software
platforms: |
nucleo_f446re
deployment_module
radio_module
sensor_module
power_module
linux_only_platforms: |
native_sim
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: FSW
fetch-depth: 2
- name: Run Starter Steps
uses: ./FSW/.github/actions/fsw-setup
- name: Build firmware
working-directory: FSW
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
fi
if [ "${{ runner.os }}" = "Linux" ]; then
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
fi
function add_arglist () {
echo "$2" | while read -r line; do
[ -z "$line" ] && continue
echo -n " $1 $line "
done;
}
west twister $(add_arglist -T "${{ env.test_roots }}") $(add_arglist -p "${{ env.platforms }}") $(if [ "${{ runner.os }}" = "Linux" ]; then add_arglist -p "${{ env.linux_only_platforms }}"; fi) -v --inline-logs --integration $EXTRA_TWISTER_FLAGS