47 lines
No EOL
2 KiB
YAML
47 lines
No EOL
2 KiB
YAML
name: build
|
|
on:
|
|
push:
|
|
branches:
|
|
- mster
|
|
pull_request:
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/pip
|
|
~/.platformio/.cache
|
|
key: ${{ runner.os }}-pio
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install PlatformIO Core
|
|
run: pip install --upgrade platformio
|
|
|
|
- name: Build PlatformIO Project
|
|
run: pio run
|
|
|
|
- name: Merge Firmware Image ttgo-lora32-v2_dwd_mowas_noscreen
|
|
working-directory: /workspace/smartPOC/smartPOC-tx/.pio/build/ttgo-lora32-v2_dwd_mowas_noscreen/
|
|
run: pio pkg exec -- esptool.py --chip ESP32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin
|
|
|
|
- name: Merge Firmware Image ttgo-lora32-v2_dwd_mowas_screen
|
|
working-directory: /workspace/smartPOC/smartPOC-tx/.pio/build/ttgo-lora32-v2_dwd_mowas_screen/
|
|
run: pio pkg exec -- esptool.py --chip ESP32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin
|
|
|
|
- name: Merge Firmware Image ttgo-lora32-v2_nidwd_mowas_noscreen
|
|
working-directory: /workspace/smartPOC/smartPOC-tx/.pio/build/ttgo-lora32-v2_nodwd_mowas_noscreen/
|
|
run: pio pkg exec -- esptool.py --chip ESP32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin
|
|
|
|
- uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: firmware
|
|
path: |
|
|
/workspace/smartPOC/smartPOC-tx/.pio/build/*/bootloader.bin
|
|
/workspace/smartPOC/smartPOC-tx/.pio/build/*/partitions.bin
|
|
/workspace/smartPOC/smartPOC-tx/.pio/build/*/firmware.bin
|
|
/workspace/smartPOC/smartPOC-tx/.pio/build/*/merged-flash.bin |