Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 51397aa

Browse files
committedApr 10, 2024
Test
1 parent 03ea66c commit 51397aa

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed
 

‎.github/scripts/on-push.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -e
44

5-
export ARDUINO_BUILD_DIR="$HOME/.arduino/build.tmp"
6-
75
function build(){
86
local target=$1
97
local fqbn=$2

‎.github/workflows/pre-commit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,23 @@ jobs:
3535
~/.cache/pip
3636
key: pre-commit|${{ env.PY_HASH }}|${{ hashFiles('.pre-commit-config.yaml', '.github/workflows/pre-commit.yml') }}
3737

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+
3855
- name: Install python dependencies
3956
run: python -m pip install pre-commit docutils
4057

‎.github/workflows/push.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,14 @@ 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-
5551
- name: Upload artifact
5652
uses: actions/upload-artifact@v4
5753
with:
5854
name: build-job-${{ matrix.chunk }}
5955
path: |
60-
~/.arduino/build.tmp/
61-
~/compile_commands.json
56+
~/.arduino/tests/**/*.h
57+
~/.arduino/tests/**/*.cpp
58+
~/.arduino/tests/**/compile_commands.json
6259
if-no-files-found: error
6360

6461
# Windows and MacOS

0 commit comments

Comments
 (0)
Please sign in to comment.