Skip to content

Commit 03ea66c

Browse files
committed
Test compile_commands generation
Fix
1 parent 7bb7270 commit 03ea66c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/push.yml

+13
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ jobs:
4848
- name: Build Sketches
4949
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
5050

51+
- name: Generate chunk compile commands
52+
run: |
53+
find ~/.arduino/build.tmp/ -iname "compile_commands.json" | xargs jq -s 'map(.[])' > ~/compile_commands.json
54+
55+
- name: Upload artifact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: build-job-${{ matrix.chunk }}
59+
path: |
60+
~/.arduino/build.tmp/
61+
~/compile_commands.json
62+
if-no-files-found: error
63+
5164
# Windows and MacOS
5265
build-arduino-win-mac:
5366
name: Arduino on ${{ matrix.os }}

0 commit comments

Comments
 (0)