File tree Expand file tree Collapse file tree 3 files changed +35
-10
lines changed
Expand file tree Collapse file tree 3 files changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -208,15 +208,7 @@ 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- find ArduinoCore-zephyr/libraries/ -name library.properties | while read -r propfile; do
213- grep '^depends=' "$propfile" | cut -d= -f2- | tr ',' '\n' | while read -r dep; do
214- [ -z "$dep" ] || printf " - name: \"%s\"\n" "$dep" >> $GITHUB_ENV
215- done
216- printf " - source-path: \"%s\"\n" $(find ArduinoCore-zephyr/libraries/ -maxdepth 1 -mindepth 1 -type d) >> $GITHUB_ENV
217- done
218- echo "EOF" >> $GITHUB_ENV
219- cat $GITHUB_ENV
211+ extra/ci_test_list.sh ${{ matrix.variant }} Blink
220212
221213 - name : Compile tests for ${{ matrix.board }}
222214 uses : pillo79/compile-sketches@next
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ for artifact in $ARTIFACTS ; do
8888 for i in $( seq 0 $(( SKETCH_COUNT - 1 )) ) ; do
8989 REPORT=$( echo $REPORTS | jq -cr " .[$i ]" )
9090 SKETCH_NAME=$( echo $REPORT | jq -cr ' .name' )
91- SKETCH_ISSUES=$( echo $REPORT | jq -cr ' .issues.[]' | sed -e ' s/.*\(\(\/[^/]\+\)\{3\}\):/...\1:/' -e ' s/.*ld: .*: undefined/ld: undefined/ ' | c++filt)
91+ SKETCH_ISSUES=$( echo $REPORT | jq -cr ' .issues.[]' | sed -e ' s/.*\(\(\/[^/]\+\)\{3\}\):/...\1:/' | c++filt)
9292 SKETCH_ISSUES_COUNT=$( echo $REPORT | jq -cr ' .issues | length' )
9393 if ! $( echo $REPORT | jq -cr ' .compilation_success' ) ; then
9494 SKETCH_ERRORS=$(( SKETCH_ERRORS + 1 ))
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # This script generates a list of all libraries and their dependencies for use
4+ # in GitHub Actions environment variables. It also generates a list of all example
5+ # .ino files, excluding those specified in a variant's skip list.
6+
7+ [ -z " $GITHUB_ENV " ] && { echo " GITHUB_ENV is not set." ; exit 1; }
8+ [ ! -d $1 ] && { echo " Invalid variant specified." ; exit 1; }
9+
10+ VARIANT=$1
11+ shift
12+
13+ echo " ALL_LIBRARIES<<EOF" >> $GITHUB_ENV
14+ find " $@ " ArduinoCore-zephyr/libraries/ -name library.properties | while read -r propfile; do
15+ grep ' ^depends=' " $propfile " | cut -d= -f2- | tr ' ,' ' \n' | while read -r dep; do
16+ [ -z " $dep " ] || printf " - name: \" %s\" \n" " $dep " >> $GITHUB_ENV
17+ done
18+ done
19+ printf " - source-path: \" %s\" \n" $( find ArduinoCore-zephyr/libraries/ -maxdepth 1 -mindepth 1 -type d) >> $GITHUB_ENV
20+ echo " EOF" >> $GITHUB_ENV
21+
22+ ALL_TESTS=$( mktemp)
23+ find " $@ " ArduinoCore-zephyr/libraries/ -name * .ino > $ALL_TESTS
24+ if [ -f $VARIANT /skip_these_examples.txt ] ; then
25+ cat $VARIANT /skip_these_examples.txt | sed -e ' s/\s*#.*//' -e ' /^\s*$/d' | while read -r pattern; do
26+ sed -i -e " /^$pattern /d" $ALL_TESTS
27+ done
28+ fi
29+ echo " ALL_TESTS<<EOF" >> $GITHUB_ENV
30+ cat $ALL_TESTS | while read -r infile; do
31+ printf " - \" %s\" \n" " $( dirname " $infile " ) " >> $GITHUB_ENV
32+ done
33+ echo " EOF" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments