2021-04-29 09:20:31 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
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@v2
|
|
|
|
# From time to time this will catch a git tag and change SOF_VERSION
|
|
|
|
with: {fetch-depth: 10, submodules: recursive}
|
|
|
|
|
2022-04-27 04:49:19 +08:00
|
|
|
# https://github.com/zephyrproject-rtos/docker-image
|
2021-09-28 10:22:46 +08:00
|
|
|
# Note: env variables can be passed to the container with
|
|
|
|
# -e https_proxy=...
|
2021-04-29 09:20:31 +08:00
|
|
|
- name: build
|
|
|
|
run: docker run -v "$(pwd)":/workdir
|
2022-04-27 04:49:19 +08:00
|
|
|
ghcr.io/zephyrproject-rtos/zephyr-build:latest
|
2022-02-24 06:44:44 +08:00
|
|
|
./zephyr/docker-build.sh --cmake-args=-DEXTRA_CFLAGS=-Werror
|
|
|
|
--cmake-args=--warn-uninitialized -a
|