-
Notifications
You must be signed in to change notification settings - Fork 319
44 lines (36 loc) · 1.33 KB
/
llext.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
34
35
36
37
38
39
40
41
42
43
44
---
name: Zephyr LLEXT
# 'workflow_dispatch' allows running this workflow manually from the
# 'Actions' tab
# yamllint disable-line rule:truthy
on: [pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
platform: [mtl, lnl]
steps:
- name: git clone sof
uses: actions/checkout@v4
with:
path: ./workspace/sof
fetch-depth: 0 # fix git describe
filter: 'tree:0'
- name: west clones
run: pip3 install west && cd workspace/sof/ && west init -l &&
west update --narrow --fetch-opt=--depth=5
- name: Download docker image && ls /opt/toolchains/
run: cd workspace && ./sof/zephyr/docker-run.sh ls -l /opt/toolchains/
- name: llext build
run: |
cd workspace && ./sof/zephyr/docker-run.sh /bin/sh -c \
"ln -s /opt/toolchains/zephyr-sdk-* ~/;
python sof/scripts/xtensa-build-zephyr.py \
--cmake-args=-DEXTRA_CFLAGS=-Werror \
--cmake-args=-DEXTRA_CXXFLAGS=-Werror \
--cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings' \
--cmake-args=--warn-uninitialized \
--overlay=sof/app/configs/${{ matrix.platform }}/modules.conf \
${{ matrix.platform }}"