Skip to content

Commit 536a87d

Browse files
committed
test
1 parent 9aa65c2 commit 536a87d

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/compile.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- src: 'blink'
2727
lib: 'DeviceNameHelperRK MyLib'
2828
- src: 'publish'
29-
lib: '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: 'LoggerCore DeviceNameHelperRK FileHelperRK SequentialFileRK PublishQueueExtRK SparkFun_Qwiic_OpenLog_Arduino_Library'
30+
# other: 'LoggerCore/src/LoggerPlatform* LoggerCore/src/LoggerUtils* LoggerCore/src/LoggerPublisher* LoggerCore/src/LoggerSD*'
3131

3232
steps:
3333
- name: Checkout code
@@ -47,8 +47,13 @@ jobs:
4747
run: |
4848
echo "Including libraries:"
4949
for lib in ${{ matrix.program.lib }}; do
50-
echo " - lib/$lib/src/*"
51-
mv lib/$lib/src/* ${{ matrix.program.src }}
50+
if [ -d "lib/$lib" ]; then
51+
echo " - lib/$lib/src/*"
52+
mv lib/$lib/src/* ${{ matrix.program.src }}
53+
else
54+
echo " - could not find $lib, make sure the library exists"
55+
exit 1
56+
fi
5257
done
5358
5459
- name: Gather other application resources
@@ -57,6 +62,7 @@ jobs:
5762
echo "Including other resources:"
5863
for other in ${{ matrix.program.other }}; do
5964
echo " - $other"
65+
find $other -name '*.pdf' -exec mv -t pdfs {} +
6066
mv $other ${{ matrix.program.src }}
6167
done
6268

0 commit comments

Comments
 (0)