2022-11-19 22:03:55 +00:00
|
|
|
name: Build ESP32
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
board:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-esp32:
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-19 23:43:18 +00:00
|
|
|
steps:
|
2022-11-20 00:07:07 +00:00
|
|
|
- name: Build base
|
|
|
|
id: base
|
2022-11-20 00:30:43 +00:00
|
|
|
uses: ./.github/workflows/composite/build-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
|
|
|
|
with:
|
|
|
|
repo: "meshtastic/web"
|
|
|
|
file: "build.tar"
|
|
|
|
target: "build.tar"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
with:
|
|
|
|
repo: "meshtastic/firmware-ota"
|
|
|
|
file: "firmware.bin"
|
|
|
|
target: "release/bleota.bin"
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
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@v3
|
|
|
|
with:
|
2022-11-20 00:07:07 +00:00
|
|
|
name: firmware-${{ inputs.board }}-${{ steps.base.outputs.version }}.zip
|
2022-11-19 23:43:18 +00:00
|
|
|
path: |
|
|
|
|
release/*.bin
|
|
|
|
release/*.elf
|
|
|
|
retention-days: 30
|