forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 1.24 KB
/
zephyr.yml
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
---
name: Zephyr
# 'workflow_dispatch' allows running this workflow manually from the
# 'Actions' tab
# yamllint disable-line rule:truthy
on: [push, pull_request, workflow_dispatch]
jobs:
zephyr-build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
# From time to time this will catch a git tag and change SOF_VERSION
with: {fetch-depth: 10, submodules: recursive}
# v0.23.4 is the last image with Zephyr SDK 0.14.
# SDK 0.15 fails with the following Werror:
# /workdir/zephyrproject/zephyr/include/zephyr/kernel/thread_stack.h:190:16:
# error: ignoring attribute 'section (".cached.\"WEST_TOPDIR/zephyr/kernel/init.c\".3")'
# because it conflicts with previous 'section
# (".cached.\"WEST_TOPDIR/zephyr/arch/xtensa/include/kernel_arch_func.h\"'
# [-Werror=attributes]
# https://github.com/zephyrproject-rtos/docker-image
# Note: env variables can be passed to the container with
# -e https_proxy=...
- name: build
run: docker run -v "$(pwd)":/workdir
ghcr.io/zephyrproject-rtos/zephyr-build:v0.23.4
./zephyr/docker-build.sh --cmake-args=-DEXTRA_CFLAGS=-Werror
--cmake-args=--warn-uninitialized -a