Skip to content

Commit 3036d03

Browse files
committed
step
1 parent 164c73f commit 3036d03

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/package_core.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ jobs:
208208
run: |
209209
mkdir Blink/
210210
wget -nv https://raw.githubusercontent.com/arduino/arduino-examples/refs/heads/main/examples/01.Basics/Blink/Blink.ino -P Blink/
211+
echo "ALL_LIBRARIES<<EOF" >> $GITHUB_ENV
212+
(cd libraries && ls | xargs printf "- %s\n") | tee -a $GITHUB_ENV
213+
find libraries/ -name library.properties | while read -r propfile; do
214+
grep '^depends=' "$propfile" | cut -d= -f2 | tr ',' '\n' | while read -r dep; do
215+
printf "- %s\n" "$dep" | tee -a $GITHUB_ENV
216+
done
217+
done
218+
echo "EOF" >> $GITHUB_ENV
211219
212220
- name: Compile tests for ${{ matrix.board }}
213221
uses: pillo79/compile-sketches@next
@@ -221,6 +229,8 @@ jobs:
221229
sketch-paths: |
222230
- Blink
223231
- ArduinoCore-zephyr/libraries
232+
libraries: |
233+
${{ env.ALL_LIBRARIES }}
224234
cli-compile-flags: |
225235
- '--build-property'
226236
- 'compiler.c.extra_flags=-Wno-type-limits -Wno-missing-field-initializers'

extra/ci_collect_logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ artifact_count() {
1919
COUNT=""
2020
ICON=":new_moon:"
2121
fi
22-
printf "<code>%3s</code>%s" $COUNT $ICON
22+
printf "<code>%3s</code>%s" "$COUNT" "$ICON"
2323
}
2424

2525
artifact_entry() {

0 commit comments

Comments
 (0)