Skip to content

Commit ffb237d

Browse files
committed
Add 2nd compilation run on base branch
1 parent 64706c8 commit ffb237d

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

.github/workflows/push.yml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ jobs:
4646
'tools/get.py',
4747
'.github/scripts/install-arduino-ide.sh') }}
4848
- name: Build Sketches
49-
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
49+
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 1
50+
51+
#Upload cli compile json as artifact
52+
- name: Upload cli compile json
53+
if: github.event_name == 'pull_request'
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: pr_cli_compile_${{ matrix.chunk }}
57+
path: cli_compile_${{ matrix.chunk }}.json
58+
overwrite: true
5059

5160
# Windows and MacOS
5261
build-arduino-win-mac:
@@ -110,3 +119,43 @@ jobs:
110119
idf.py create-project test
111120
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
112121
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
122+
123+
# Ubuntu
124+
build-arduino-base-linux:
125+
name: Arduino Base ${{ matrix.chunk }} on ubuntu-latest
126+
#run if its on PR only
127+
if: github.event_name == 'pull_request'
128+
runs-on: ubuntu-latest
129+
strategy:
130+
fail-fast: false
131+
matrix:
132+
chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
133+
134+
# Checkout base branch
135+
steps:
136+
- uses: actions/checkout@v4
137+
with:
138+
ref: ${{ github.event.pull_request.base.ref }}
139+
- uses: actions/setup-python@v5
140+
with:
141+
python-version: '3.x'
142+
- name: Cache tools
143+
id: cache-linux
144+
uses: actions/cache@v4
145+
with:
146+
path: |
147+
./tools/dist
148+
~/arduino_ide
149+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
150+
'tools/get.py',
151+
'.github/scripts/install-arduino-ide.sh') }}
152+
- name: Build Sketches
153+
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15 1
154+
155+
#Upload cli compile json as artifact
156+
- name: Upload cli compile json
157+
uses: actions/upload-artifact@v4
158+
with:
159+
name: master_cli_compile_${{ matrix.chunk }}
160+
path: cli_compile_${{ matrix.chunk }}.json
161+
overwrite: true

0 commit comments

Comments
 (0)