mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-21 12:38:34 +00:00
Update github action to flatten firmware zip and attach artifacts (#1186)
This commit is contained in:
parent
868af9dd6b
commit
e11fd593ae
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@ -114,22 +114,19 @@ jobs:
|
|||||||
echo "Simulator started, launching python test..."
|
echo "Simulator started, launching python test..."
|
||||||
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
python3 -c 'from meshtastic.test import testSimulator; testSimulator()'
|
||||||
|
|
||||||
# - name: Build for tbeam
|
|
||||||
# run: platformio run -e tbeam
|
|
||||||
# - name: Build for heltec
|
|
||||||
# run: platformio run -e heltec
|
|
||||||
# - name: Build for wisblock RAK4631
|
|
||||||
# run: platformio run -e rak4631
|
|
||||||
|
|
||||||
- name: Build everything
|
- name: Build everything
|
||||||
run: bin/build-all.sh
|
run: bin/build-all.sh
|
||||||
|
|
||||||
|
- name: Get release version string
|
||||||
|
run: echo "::set-output name=version::$(./bin/buildinfo.py long)"
|
||||||
|
id: version
|
||||||
|
|
||||||
- name: Store binaries as an artifact
|
- name: Store binaries as an artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: built
|
name: firmware-${{ steps.version.outputs.version }}.zip
|
||||||
path: release/archive/firmware-*.zip
|
path: release/archive/firmware-${{ steps.version.outputs.version }}.zip
|
||||||
retention-days: 30
|
retention-days: 90
|
||||||
|
|
||||||
- name: Store debugging elf files as an artifact
|
- name: Store debugging elf files as an artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
@ -137,3 +134,17 @@ jobs:
|
|||||||
name: debug-elfs
|
name: debug-elfs
|
||||||
path: release/archive/elfs-*.zip
|
path: release/archive/elfs-*.zip
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
|
- name: Download firmware.zip
|
||||||
|
uses: actions/download-artifact@master
|
||||||
|
with:
|
||||||
|
name: firmware-${{ steps.version.outputs.version }}.zip
|
||||||
|
path: ./
|
||||||
|
|
||||||
|
- name: Pull request artifacts
|
||||||
|
if: ${{ github.event_name == 'pull_request' }}
|
||||||
|
uses: gavv/pull-request-artifacts@v1.0.0
|
||||||
|
with:
|
||||||
|
commit: ${{ github.event.pull_request.head.sha }}
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
artifacts: ./firmware-${{ steps.version.outputs.version }}.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user