Skip to content

Control Freak Code #657

Control Freak Code

Control Freak Code #657

Workflow file for this run

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
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