@@ -48,39 +48,46 @@ jobs:
48
48
- name : Build Sketches
49
49
run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
50
50
51
- # Windows and MacOS
52
- build-arduino-win-mac :
53
- name : Arduino on ${{ matrix.os }}
54
- runs-on : ${{ matrix.os }}
55
- strategy :
56
- fail-fast : false
57
- matrix :
58
- os : [windows-latest, macOS-latest]
59
-
60
- steps :
61
- - uses : actions/checkout@v4
62
- - uses : actions/setup-python@v5
51
+ # Upload cli compile json as artifact
52
+ - name : Upload cli compile json
53
+ uses : actions/upload-artifact@v4
63
54
with :
64
- python-version : ' 3.x'
65
- - name : Build Sketches
66
- run : bash ./.github/scripts/on-push.sh
55
+ name : pr_cli_compile_${{ matrix.chunk }}
56
+ path : cli_compile_${{ matrix.chunk }}.json
67
57
68
- # PlatformIO on Windows, Ubuntu and Mac
69
- build-platformio :
70
- name : PlatformIO on ${{ matrix.os }}
71
- runs-on : ${{ matrix.os }}
72
- strategy :
73
- fail-fast : false
74
- matrix :
75
- os : [ubuntu-latest, windows-latest, macOS-latest]
58
+ # Windows and MacOS
59
+ # build-arduino-win-mac:
60
+ # name: Arduino on ${{ matrix.os }}
61
+ # runs-on: ${{ matrix.os }}
62
+ # strategy:
63
+ # fail-fast: false
64
+ # matrix:
65
+ # os: [windows-latest, macOS-latest]
66
+ #
67
+ # steps:
68
+ # - uses: actions/checkout@v4
69
+ # - uses: actions/setup-python@v5
70
+ # with:
71
+ # python-version: '3.x'
72
+ # - name: Build Sketches
73
+ # run: bash ./.github/scripts/on-push.sh
76
74
77
- steps :
78
- - uses : actions/checkout@v4
79
- - uses : actions/setup-python@v5
80
- with :
81
- python-version : ' 3.x'
82
- - name : Build Sketches
83
- run : bash ./.github/scripts/on-push.sh 1 1 # equal and non-zero to trigger PIO
75
+ # PlatformIO on Windows, Ubuntu and Mac
76
+ # build-platformio:
77
+ # name: PlatformIO on ${{ matrix.os }}
78
+ # runs-on: ${{ matrix.os }}
79
+ # strategy:
80
+ # fail-fast: false
81
+ # matrix:
82
+ # os: [ubuntu-latest, windows-latest, macOS-latest]
83
+ #
84
+ # steps:
85
+ # - uses: actions/checkout@v4
86
+ # - uses: actions/setup-python@v5
87
+ # with:
88
+ # python-version: '3.x'
89
+ # - name: Build Sketches
90
+ # run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
84
91
85
92
build-esp-idf-component :
86
93
name : Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
@@ -110,3 +117,51 @@ jobs:
110
117
idf.py create-project test
111
118
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
112
119
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
120
+
121
+ # Ubuntu
122
+ build-arduino-master-linux :
123
+ name : Arduino Master ${{ matrix.chunk }} on ubuntu-latest
124
+ runs-on : ubuntu-latest
125
+ strategy :
126
+ fail-fast : false
127
+ matrix :
128
+ chunk : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
129
+
130
+ # Checkout master branch
131
+ steps :
132
+ - uses : actions/checkout@v4
133
+ with :
134
+ ref : master
135
+ - uses : actions/setup-python@v5
136
+ with :
137
+ python-version : ' 3.x'
138
+ - name : Cache tools
139
+ id : cache-linux
140
+ uses : actions/cache@v4
141
+ with :
142
+ path : |
143
+ ./tools/dist
144
+ ~/arduino_ide
145
+ key : ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
146
+ ' tools/get.py' ,
147
+ ' .github/scripts/install-arduino-ide.sh' ) }}
148
+ - name : Build Sketches
149
+ run : bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
150
+
151
+ # Upload cli compile json as artifact
152
+ - name : Upload cli compile json
153
+ uses : actions/upload-artifact@v4
154
+ with :
155
+ name : master_cli_compile_${{ matrix.chunk }}
156
+ path : cli_compile_${{ matrix.chunk }}.json
157
+
158
+ event_file :
159
+ name : " Event File"
160
+ needs : [build-arduino-linux, build-arduino-master-linux]
161
+ runs-on : ubuntu-latest
162
+ steps :
163
+ - name : Upload
164
+ uses : actions/upload-artifact@v4
165
+ with :
166
+ name : Event File
167
+ path : ${{github.event_path}}
0 commit comments