2727
2828jobs :
2929 setup :
30- if : github.repository == 'meshtastic/firmware'
3130 strategy :
3231 fail-fast : true
3332 matrix :
4241 python-version : 3.x
4342 cache : pip
4443 - run : pip install -U platformio
45- - name : Uncomment build epoch
46- shell : bash
47- run : |
48- sed -i 's/#-DBUILD_EPOCH=$UNIX_TIME/-DBUILD_EPOCH=$UNIX_TIME/' platformio.ini
4944 - name : Generate matrix
5045 id : jsonStep
5146 run : |
6257 check : ${{ steps.jsonStep.outputs.check }}
6358
6459 version :
65- if : github.repository == 'meshtastic/firmware'
6660 runs-on : ubuntu-latest
6761 steps :
6862 - uses : actions/checkout@v5
@@ -217,19 +211,17 @@ jobs:
217211 - name : Display structure of downloaded files
218212 run : ls -R
219213
220- - name : Move files up
221- run : mv -b -t ./ ./bin/device-*.sh ./bin/device-*.bat
222-
223214 - name : Repackage in single firmware zip
224215 uses : actions/upload-artifact@v4
225216 with :
226217 name : firmware-${{matrix.arch}}-${{ needs.version.outputs.long }}
227218 overwrite : true
228219 path : |
220+ ./firmware-*.mt.json
229221 ./firmware-*.bin
230222 ./firmware-*.uf2
231223 ./firmware-*.hex
232- ./firmware-*-ota .zip
224+ ./firmware-*.zip
233225 ./device-*.sh
234226 ./device-*.bat
235227 ./littlefs-*.bin
@@ -258,7 +250,7 @@ jobs:
258250 - name : Repackage in single elfs zip
259251 uses : actions/upload-artifact@v4
260252 with :
261- name : debug-elfs-${{matrix.arch}}-${{ needs.version.outputs.long }}.zip
253+ name : debug-elfs-${{matrix.arch}}-${{ needs.version.outputs.long }}
262254 overwrite : true
263255 path : ./*.elf
264256 retention-days : 30
@@ -284,11 +276,6 @@ jobs:
284276 - name : Checkout
285277 uses : actions/checkout@v5
286278
287- - name : Setup Python
288- uses : actions/setup-python@v6
289- with :
290- python-version : 3.x
291-
292279 - name : Create release
293280 uses : softprops/action-gh-release@v2
294281 id : create_release
@@ -353,11 +340,6 @@ jobs:
353340 - name : Checkout
354341 uses : actions/checkout@v5
355342
356- - name : Setup Python
357- uses : actions/setup-python@v6
358- with :
359- python-version : 3.x
360-
361343 - uses : actions/download-artifact@v5
362344 with :
363345 pattern : firmware-${{matrix.arch}}-${{ needs.version.outputs.long }}
@@ -377,7 +359,7 @@ jobs:
377359
378360 - uses : actions/download-artifact@v5
379361 with :
380- name : debug-elfs-${{matrix.arch}}-${{ needs.version.outputs.long }}.zip
362+ name : debug-elfs-${{matrix.arch}}-${{ needs.version.outputs.long }}
381363 merge-multiple : true
382364 path : ./elfs
383365
@@ -408,11 +390,6 @@ jobs:
408390 - name : Checkout
409391 uses : actions/checkout@v5
410392
411- - name : Setup Python
412- uses : actions/setup-python@v6
413- with :
414- python-version : 3.x
415-
416393 - uses : actions/download-artifact@v5
417394 with :
418395 pattern : firmware-{${{ env.targets }}}-${{ needs.version.outputs.long }}
0 commit comments