File tree Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-22.04
12
- container : ghcr.io/zephyrproject-rtos/ci:v0.26.2
13
- env :
14
- CMAKE_PREFIX_PATH : /opt/toolchains
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ os : [ubuntu-latest, macos-latest, windows-latest]
15
+ runs-on : ${{ matrix.os }}
15
16
steps :
16
17
- name : Checkout
17
18
uses : actions/checkout@v3
18
19
with :
19
20
path : example-application
20
21
21
- - name : Initialize
22
- working-directory : example-application
23
- run : |
24
- west init -l .
25
- west update -o=--depth=1 -n
22
+ - name : Set up Python
23
+ uses : actions/setup-python@v4
24
+ with :
25
+ python-version : 3.11
26
+
27
+ - name : Setup Zephyr project
28
+ uses : zephyrproject-rtos/action-zephyr-setup@v1
29
+ with :
30
+ app-path : example-application
31
+ toolchains : arm-zephyr-eabi
26
32
27
33
- name : Build firmware
28
34
working-directory : example-application
35
+ shell : bash
29
36
run : |
30
- west twister -T app -v --inline-logs --integration
37
+ if [ "${{ runner.os }}" = "Windows" ]; then
38
+ EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
39
+ fi
40
+ west twister -T app -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
31
41
32
42
- name : Twister Tests
33
43
working-directory : example-application
44
+ shell : bash
34
45
run : |
35
- west twister -T tests --integration
46
+ if [ "${{ runner.os }}" = "Windows" ]; then
47
+ EXTRA_TWISTER_FLAGS="--short-build-path -O/tmp/twister-out"
48
+ fi
49
+ west twister -T tests -v --inline-logs --integration $EXTRA_TWISTER_FLAGS
You can’t perform that action at this time.
0 commit comments