Skip to content

Commit 588da06

Browse files
committed
Add twister build to github actions
1 parent d90f476 commit 588da06

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
board: [mimxrt1024_evk, frdm_mcxn947/mcxn947/cpu0]
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
path: memfault-zephyr-http-example
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: 3.11
24+
25+
- name: Setup Zephyr project
26+
uses: zephyrproject-rtos/action-zephyr-setup@v1
27+
with:
28+
app-path: memfault-zephyr-http-example
29+
toolchains: arm-zephyr-eabi
30+
31+
- name: Run twister
32+
run: >
33+
zephyr/scripts/twister
34+
--platform ${{ matrix.board }}
35+
--testsuite-root memfault-zephyr-http-example

sample.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ common:
55
sample:
66
description: Memfault HTTP Client Example
77
name: memfault-zephyr-http-example
8+
tests:
9+
sample.build:
10+
build_only: true
11+
extra_configs:
12+
- CONFIG_MEMFAULT_PROJECT_KEY="dummy"

0 commit comments

Comments
 (0)