Skip to content

Commit 75d22b5

Browse files
committed
.github:: add pull request workflow for Zephyr shell builds
Add zephyr-shell.yml GitHub Actions workflow that builds Intel 'tgl', 'mtl' and 'lnl' platforms with Zephyr shell support enabled via: --overlay=sof/app/shell_overlay.conf This catches regressions in shell-enabled builds on every pull request. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent fe7281b commit 75d22b5

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/zephyr-shell.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
# Tools that can save round-trips to github and a lot of time:
4+
#
5+
# yamllint -f parsable zephyr-shell.yml
6+
# pip3 install ruamel.yaml.cmd
7+
# yaml merge-expand zephyr-shell.yml exp.yml && diff -w -u zephyr-shell.yml exp.yml
8+
#
9+
# github.com also has a powerful web editor that can be used without
10+
# committing.
11+
12+
name: Zephyr Shell
13+
14+
# 'workflow_dispatch' allows running this workflow manually from the
15+
# 'Actions' tab
16+
# yamllint disable-line rule:truthy
17+
on: [pull_request, workflow_dispatch]
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
build:
28+
runs-on: ubuntu-24.04
29+
container:
30+
image: thesofproject/zephyr-lite:v0.29.0
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
platform: [tgl, mtl, lnl]
36+
37+
steps:
38+
- name: checkout
39+
uses: actions/checkout@v4
40+
with:
41+
path: sof
42+
fetch-depth: 0 # fix git describe
43+
filter: 'tree:0'
44+
45+
- name: west update
46+
working-directory: sof
47+
run: |
48+
west init -l
49+
west update --narrow --fetch-opt=--depth=5
50+
51+
- name: print all available sdks in /opt/toolchains/
52+
run: |
53+
ls -l /opt/toolchains/
54+
55+
- name: shell build
56+
run: |
57+
ln -s /opt/toolchains/zephyr-sdk-* ~/
58+
python sof/scripts/xtensa-build-zephyr.py \
59+
--cmake-args=-DEXTRA_CFLAGS=-Werror \
60+
--cmake-args=-DEXTRA_CXXFLAGS=-Werror \
61+
--cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings' \
62+
--cmake-args=--warn-uninitialized \
63+
--overlay=sof/app/shell_overlay.conf \
64+
${{ matrix.platform }}

0 commit comments

Comments
 (0)