-
Notifications
You must be signed in to change notification settings - Fork 34
75 lines (63 loc) · 2.38 KB
/
Copy pathtest.yaml
File metadata and controls
75 lines (63 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Action test
on:
push:
pull_request:
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm, macos-14, macos-15, windows-2022, windows-2025]
release: [v3.7-branch, v4.2-branch, v4.3-branch, main]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Main Zephyr repository checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: zephyrproject-rtos/zephyr
path: zephyr
ref: ${{ matrix.release }}
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: 3.12
- name: Setup Zephyr project
uses: ./
with:
app-path: zephyr
toolchains: arm-zephyr-eabi:riscv64-zephyr-elf:x86_64-zephyr-elf
west-group-filter: -tools,-bootloader,-babblesim
west-project-filter: -nrf_hw_models
ccache-cache-key: ${{ matrix.os }}-${{ matrix.release }}
- name: Build firmware
working-directory: zephyr
shell: bash
run: |
if [ "${{ runner.os }}" = "macOS" ]; then
EXTRA_TWISTER_FLAGS="-P native_sim --build-only"
elif [ "${{ runner.os }}" = "Windows" ]; then
EXTRA_TWISTER_FLAGS="-P native_sim --short-build-path -O/tmp/twister-out"
fi
PLATFORMS_FLAGS=""
if [ "${{ runner.os }}-${{ runner.arch }}" == "Linux-ARM64" ]; then
PLATFORMS_FLAGS+="-p native_sim/native/64 "
else
PLATFORMS_FLAGS+="-p native_sim "
fi
PLATFORMS_FLAGS+="-p qemu_cortex_m0 "
PLATFORMS_FLAGS+="-p qemu_riscv32 "
PLATFORMS_FLAGS+="-p qemu_riscv64 "
PLATFORMS_FLAGS+="-p qemu_x86 "
PLATFORMS_FLAGS+="-p qemu_x86_64"
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
./scripts/twister --force-color --inline-logs -T samples/hello_world -v $PLATFORMS_FLAGS $EXTRA_TWISTER_FLAGS
- name: Print ccache stats
if: runner.os != 'Windows'
run: |
ccache -s -vv