File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,22 @@ jobs:
28
28
persist-credentials : false
29
29
path : subfolder
30
30
31
- - name : Fix module path
31
+ - name : Fix module path, list needed HALs
32
32
run : |
33
33
mkdir -p $(dirname $MODULE_PATH) && mv subfolder $MODULE_PATH
34
+ NEEDED_HALS=$(grep 'build.zephyr_hals=' $MODULE_PATH/boards.txt | cut -d '=' -f 2 | xargs -n 1 echo | sort -u)
35
+ HAL_FILTER="-hal_.*"
36
+ for hal in $NEEDED_HALS; do
37
+ HAL_FILTER="$HAL_FILTER,+$hal"
38
+ done
39
+ echo "HAL_FILTER=$HAL_FILTER" | tee -a $GITHUB_ENV
34
40
35
41
- name : Setup Zephyr project
36
42
uses : zephyrproject-rtos/action-zephyr-setup@v1
37
43
with :
38
44
toolchains : arm-zephyr-eabi
39
45
manifest-file-name : ${{ env.MODULE_PATH }}/west.yml
46
+ west-project-filter : ${{ env.HAL_FILTER }}
40
47
41
48
- name : Add manifest path as module
42
49
run : |
You can’t perform that action at this time.
0 commit comments