2626 - src : ' blink'
2727 lib : ' DeviceNameHelperRK MyLib'
2828 - src : ' publish'
29- lib : ' LoggerCore DeviceNameHelperRK FileHelperRK SequentialFileRK PublishQueueExtRK SparkFun_Qwiic_OpenLog_Arduino_Library'
30- # other: 'LoggerCore/src/LoggerPlatform* LoggerCore/src/LoggerUtils* LoggerCore/src/LoggerPublisher* LoggerCore/src/LoggerSD*'
29+ lib : ' DeviceNameHelperRK FileHelperRK SequentialFileRK PublishQueueExtRK SparkFun_Qwiic_OpenLog_Arduino_Library'
30+ aux : ' LoggerCore/src/LoggerPlatform* LoggerCore/src/LoggerUtils* LoggerCore/src/LoggerPublisher* LoggerCore/src/LoggerSD*'
31+ - src : ' controller'
32+ lib : ' LoggerCore'
3133
3234 steps :
3335 - name : Checkout code
@@ -41,29 +43,22 @@ jobs:
4143 mkdir ${{ matrix.program.src }}
4244 echo "Including sources from ${{ matrix.root }}/${{ matrix.program.src }}"
4345 mv ${{ matrix.root }}/${{ matrix.program.src }}/* ${{ matrix.program.src }}
44-
45- - name : Gather application libraries
46- if : contains(${{ matrix.program }}, 'lib')
47- run : |
4846 echo "Including libraries:"
4947 for lib in ${{ matrix.program.lib }}; do
50- if [ -d "lib/$lib" ]; then
48+ if [ -d "$lib" ]; then
49+ echo " - $lib/src/*"
50+ mv $lib/src/* ${{ matrix.program.src }}
51+ elif [ -d "lib/$lib" ]; then
5152 echo " - lib/$lib/src/*"
5253 mv lib/$lib/src/* ${{ matrix.program.src }}
5354 else
5455 echo " - could not find $lib, make sure the library exists"
55- exit 1
5656 fi
5757 done
58-
59- - name : Gather other application resources
60- if : contains(${{ matrix.program }}, 'other')
61- run : |
62- echo "Including other resources:"
63- for other in ${{ matrix.program.other }}; do
64- echo " - $other"
65- find $other -name '*.pdf' -exec mv -t pdfs {} +
66- mv $other ${{ matrix.program.src }}
58+ echo "Including auxiliary resources:"
59+ for aux in ${{ matrix.program.aux }}; do
60+ echo " - $aux"
61+ mv $aux ${{ matrix.program.src }}
6762 done
6863
6964 - name : Compile in cloud
0 commit comments