firmware/.github/workflows/build_esp32.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2022-11-19 22:03:55 +00:00
name: Build ESP32
on:
workflow_call:
inputs:
board:
required: true
type: string
jobs:
2022-11-19 22:03:55 +00:00
build-esp32:
2024-09-18 05:28:54 +00:00
runs-on: [linux, x64]
2022-11-19 23:43:18 +00:00
steps:
- uses: actions/checkout@v4
2022-11-20 00:07:07 +00:00
- name: Build base
id: base
2022-11-20 01:23:35 +00:00
uses: ./.github/actions/setup-base
2022-11-19 22:03:55 +00:00
2022-11-19 23:43:18 +00:00
- name: Pull web ui
uses: dsaltares/fetch-gh-release-asset@master
2022-11-19 23:43:18 +00:00
with:
2023-07-27 12:04:00 +00:00
repo: meshtastic/web
file: build.tar
target: build.tar
2022-11-19 23:43:18 +00:00
token: ${{ secrets.GITHUB_TOKEN }}
2022-11-19 22:03:55 +00:00
2022-11-19 23:43:18 +00:00
- name: Unpack web ui
run: |
tar -xf build.tar -C data/static
rm build.tar
2022-11-19 22:03:55 +00:00
- name: Remove debug flags for release
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
sed -i '/DDEBUG_HEAP/d' ./arch/esp32/esp32.ini
sed -i '/DDEBUG_HEAP/d' ./arch/esp32/esp32s2.ini
sed -i '/DDEBUG_HEAP/d' ./arch/esp32/esp32s3.ini
2024-03-07 14:03:01 +00:00
sed -i '/DDEBUG_HEAP/d' ./arch/esp32/esp32c3.ini
2022-11-19 23:43:18 +00:00
- name: Build ESP32
run: bin/build-esp32.sh ${{ inputs.board }}
2022-11-19 22:03:55 +00:00
2022-11-19 23:43:18 +00:00
- name: Pull OTA Firmware
uses: dsaltares/fetch-gh-release-asset@master
2022-11-19 23:43:18 +00:00
with:
2023-07-27 12:04:00 +00:00
repo: meshtastic/firmware-ota
file: firmware.bin
target: release/bleota.bin
2022-11-19 23:43:18 +00:00
token: ${{ secrets.GITHUB_TOKEN }}
2022-11-20 01:23:35 +00:00
- name: Get release version string
shell: bash
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version
2022-11-19 22:03:55 +00:00
2022-11-19 23:43:18 +00:00
- name: Store binaries as an artifact
uses: actions/upload-artifact@v4
2022-11-19 23:43:18 +00:00
with:
2022-11-20 01:23:35 +00:00
name: firmware-${{ inputs.board }}-${{ steps.version.outputs.version }}.zip
overwrite: true
2022-11-19 23:43:18 +00:00
path: |
release/*.bin
release/*.elf