-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (69 loc) · 1.93 KB
/
Copy pathbuild_samples.yml
File metadata and controls
74 lines (69 loc) · 1.93 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
65
66
67
68
69
70
71
72
73
74
name: Build Samples
on:
push:
branches:
- main
pull_request:
branches:
- '*'
schedule:
- cron: "0 0 * * 1"
env:
test_roots: |
app/samples/littlefs
app/samples/sensor
app/samples/shield_blinky
app/samples/shield_mcp3561r
app/samples/lora_bcast
app/samples/udp_bcast
app/samples/message_passing
app/samples/openrocket_sensors
app/samples/soft_timer
app/samples/tenants_and_tasks
app/samples/tftp_server
app/samples/datalogger
app/samples/gpio_blinky
app/samples/phase_detection
app/samples/horus
app/samples/compression
app/samples/cpu_monitor
platforms: |
nucleo_f446re
radio_module
sensor_module
power_module
deployment_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