File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- export ARDUINO_BUILD_DIR=" $HOME /.arduino/build.tmp"
6
-
7
5
function build(){
8
6
local target=$1
9
7
local fqbn=$2
Original file line number Diff line number Diff line change 35
35
~/.cache/pip
36
36
key : pre-commit|${{ env.PY_HASH }}|${{ hashFiles('.pre-commit-config.yaml', '.github/workflows/pre-commit.yml') }}
37
37
38
+ - name : Download compilation artifacts
39
+ uses : actions/download-artifact@v4
40
+ with :
41
+ pattern : build-job-*
42
+ merge-multiple : true
43
+ path : ~/.arduino/tests/
44
+
45
+ - name : Merge compile commands
46
+ run : |
47
+ find ~/.arduino/tests/ -iname "compile_commands.json" | xargs jq -s 'map(.[])' > ~/compile_commands.json
48
+
49
+ - name : Upload compile commands
50
+ uses : actions/upload-artifact@v4
51
+ with :
52
+ name : compile_commands
53
+ path : ~/compile_commands.json
54
+
38
55
- name : Install python dependencies
39
56
run : python -m pip install pre-commit docutils
40
57
Original file line number Diff line number Diff line change @@ -48,17 +48,14 @@ jobs:
48
48
- name : Build Sketches
49
49
run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
50
50
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
51
- name : Upload artifact
56
52
uses : actions/upload-artifact@v4
57
53
with :
58
54
name : build-job-${{ matrix.chunk }}
59
55
path : |
60
- ~/.arduino/build.tmp/
61
- ~/compile_commands.json
56
+ ~/.arduino/tests/**/*.h
57
+ ~/.arduino/tests/**/*.cpp
58
+ ~/.arduino/tests/**/compile_commands.json
62
59
if-no-files-found : error
63
60
64
61
# Windows and MacOS
You can’t perform that action at this time.
0 commit comments