@@ -7,43 +7,46 @@ name: Zephyr LLEXT
77# yamllint disable-line rule:truthy
88on : [pull_request, workflow_dispatch]
99
10+ defaults :
11+ run :
12+ shell : bash
13+
1014jobs :
1115 build :
1216 runs-on : ubuntu-22.04
17+ container :
18+ image : thesofproject/zephyr-lite:v0.28.4
1319
1420 strategy :
1521 fail-fast : false
1622 matrix :
1723 platform : [mtl, lnl]
1824
1925 steps :
20- - name : free space
21- run : |
22- sudo rm -rf /usr/share/dotnet
23- sudo rm -rf /opt/ghc
24-
25- - name : git clone sof
26+ - name : checkout
2627 uses : actions/checkout@v4
2728 with :
28- path : ./workspace/ sof
29+ path : sof
2930 fetch-depth : 0 # fix git describe
3031 filter : ' tree:0'
3132
32- - name : west clones
33- run : pip3 install west && cd workspace/sof/ && west init -l &&
34- west update --narrow --fetch-opt=--depth=5
33+ - name : west update
34+ working-directory : sof
35+ run : |
36+ west init -l
37+ west update --narrow --fetch-opt=--depth=5
3538
36- - name : Download docker image && ls /opt/toolchains/
37- run : cd workspace && ./sof/zephyr/docker-run.sh ls -l /opt/toolchains/
39+ - name : print all available sdks in /opt/toolchains/
40+ run : |
41+ ls -l /opt/toolchains/
3842
3943 - name : llext build
4044 run : |
41- cd workspace && ./sof/zephyr/docker-run.sh /bin/sh -c \
42- "ln -s /opt/toolchains/zephyr-sdk-* ~/;
43- python sof/scripts/xtensa-build-zephyr.py \
44- --cmake-args=-DEXTRA_CFLAGS=-Werror \
45- --cmake-args=-DEXTRA_CXXFLAGS=-Werror \
46- --cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings' \
47- --cmake-args=--warn-uninitialized \
48- --overlay=sof/app/configs/${{ matrix.platform }}/modules.conf \
49- ${{ matrix.platform }}"
45+ ln -s /opt/toolchains/zephyr-sdk-* ~/
46+ python sof/scripts/xtensa-build-zephyr.py \
47+ --cmake-args=-DEXTRA_CFLAGS=-Werror \
48+ --cmake-args=-DEXTRA_CXXFLAGS=-Werror \
49+ --cmake-args=-DEXTRA_AFLAGS='-Werror -Wa,--fatal-warnings' \
50+ --cmake-args=--warn-uninitialized \
51+ --overlay=sof/app/configs/${{ matrix.platform }}/modules.conf \
52+ ${{ matrix.platform }}
0 commit comments