Skip to content

Commit b9bec94

Browse files
committed
step
1 parent 0489f88 commit b9bec94

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,22 @@ jobs:
1818
sparse-checkout: |
1919
west.yml
2020
boards.txt
21+
22+
- name: List needed HALs
23+
run: |
24+
NEEDED_HALS=$(grep 'build.zephyr_hals=' boards.txt | cut -d '=' -f 2 | xargs -n 1 echo | sort -u)
25+
HAL_FILTER="-hal_.*"
26+
for hal in $NEEDED_HALS; do
27+
HAL_FILTER="$HAL_FILTER,+$hal"
28+
done
29+
echo "HAL_FILTER=$HAL_FILTER" >> $GITHUB_ENV
30+
2131
- name: Setup Zephyr project
2232
uses: zephyrproject-rtos/action-zephyr-setup@v1
2333
with:
2434
toolchains: arm-zephyr-eabi
2535
sdk-version: 0.16.8
36+
west-project-filter: ${{ env.HAL_FILTER }}
2637

2738
- name: Build fade
2839
run: |

0 commit comments

Comments
 (0)