Skip to content

Commit

Permalink
ci: build samples using twister.
Browse files Browse the repository at this point in the history
Signed-off-by: Zelin Cai <[email protected]>
  • Loading branch information
caizelin committed Jul 29, 2024
1 parent 13564d7 commit c603490
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/twister-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Twister Zephyr Samples

on:
push:
pull_request:
schedule:
# Run at 03:00 UTC on every Sunday
- cron: "0 3 * * 0"

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: imxrt1011-nanokit

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: imxrt1011-nanokit
toolchains: arm-zephyr-eabi

- name: Twister Zephyr Samples
working-directory: imxrt1011-nanokit
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
fi
west twister -T samples/zephyr -v --inline-logs --integration $EXTRA_TWISTER_FLAGS

0 comments on commit c603490

Please sign in to comment.