File tree 3 files changed +38
-4
lines changed
3 files changed +38
-4
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 6
6
7
7
jobs :
8
8
lint :
9
- if : |
10
- contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge')
9
+ # if: |
10
+ # contains(github.event.pull_request.labels.*.name, 'Status: Pending Merge')
11
11
name : Checking if any fixes are needed
12
12
runs-on : ubuntu-latest
13
13
steps :
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 : Wait for sketches to compile
39
+
40
+ with :
41
+ ref : ${{ github.event.pull_request.head.sha }}
42
+ check-regexp : " Arduino [0-9]+ on ubuntu-latest"
43
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
44
+ wait-interval : 10
45
+
46
+ - name : Download compilation artifacts
47
+ uses : actions/download-artifact@v4
48
+ with :
49
+ pattern : build-job-*
50
+ merge-multiple : true
51
+ path : ~/.arduino/tests/
52
+
53
+ - name : Merge compile commands
54
+ run : |
55
+ find ~/.arduino/tests/ -iname "compile_commands.json" | xargs jq -s 'map(.[])' > ~/compile_commands.json
56
+
57
+ - name : Upload compile commands
58
+ uses : actions/upload-artifact@v4
59
+ with :
60
+ name : compile_commands
61
+ path : ~/compile_commands.json
62
+
38
63
- name : Install python dependencies
39
64
run : python -m pip install pre-commit docutils
40
65
Original file line number Diff line number Diff line change 48
48
- name : Build Sketches
49
49
run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
50
50
51
+ - name : Upload artifact
52
+ uses : actions/upload-artifact@v4
53
+ with :
54
+ name : build-job-${{ matrix.chunk }}
55
+ path : |
56
+ ~/.arduino/tests/**/*.h
57
+ ~/.arduino/tests/**/*.cpp
58
+ ~/.arduino/tests/**/*.bin
59
+ ~/.arduino/tests/**/compile_commands.json
60
+ if-no-files-found : error
61
+
51
62
# Windows and MacOS
52
63
build-arduino-win-mac :
53
64
name : Arduino on ${{ matrix.os }}
You can’t perform that action at this time.
0 commit comments