Skip to content

Update build workflow to use official Zephyr setup action and restric… #74

Update build workflow to use official Zephyr setup action and restric…

Update build workflow to use official Zephyr setup action and restric… #74

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 20, Col: 11): Unexpected value '', (Line: 21, Col: 1): 'jobs' is already defined
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Checkout into a short path to avoid Windows MAX_PATH issues
- uses: actions/checkout@v4
with:
path: OAF
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
# Setup Zephyr
- name: Setup Zephyr
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: 'OAF'
toolchains: arm-zephyr-eabi:xtensa-espressif_esp32s3_zephyr-elf
- name: Build firmware
working-directory: OAF
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
fi
west twister -T app -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
- name: Twister Tests
working-directory: OAF
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
fi
west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS