Skip to content

WIP

WIP #6

Workflow file for this run

# see: https://github.com/marketplace/actions/test-compile-for-arduino
name: build
on: [push, pull_request]
jobs:
build:
name: build for MCU
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout EthernetLarge library
uses: actions/checkout@v4
with:
repository: OPEnSLab-OSU/EthernetLarge
ref: master
path: CustomLibrary_EthernetLarge # must contain string "Custom"
- name: Compile sketch
uses: ArminJo/arduino-test-compile@v3
with:
arduino-board-fqbn: esp32:esp32:m5stack-atoms3:CDCOnBoot=cdc
arduino-platform: esp32:[email protected]
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
required-libraries: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],Adafruit [email protected],Adafruit SGP30 [email protected],Adafruit BME680 [email protected],Adafruit VEML7700 [email protected],SparkFun AS7331 Arduino [email protected],SparkFun AS3935 Lightning Detector Arduino [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
sketch-names: "*.ino"
sketch-names-find-start: bbn_*
extra-arduino-cli-args: "--warnings default --build-property compiler.libraries.ldflags=-Wl,--allow-multiple-definition "
set-build-path: true
- name: Make merged .bin
run: >
python3 "$HOME/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool.py"
--chip esp32s3 merge_bin -o $HOME/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/bbn_esp32_gpio_sensors_hub_firmware.bin
--flash_mode dio --flash_freq 80m --flash_size 4MB
0x0 "$HOME/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/bbn_esp32_gpio_sensors_hub.ino.bootloader.bin"
0x8000 "$HOME/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/bbn_esp32_gpio_sensors_hub.ino.partitions.bin"
0xe000 "$HOME/.arduino15/packages/esp32/hardware/esp32/2.0.17/tools/partitions/boot_app0.bin"
0x10000 "$HOME/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/bbn_esp32_gpio_sensors_hub.ino.bin"
- name: Make zip
run: |
ls /home/runner/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/*.bin /home/runner/work/bbn_esp32_gpio_sensors_hub/bbn_esp32_gpio_sensors_hub/build/*.csv | zip bbn_esp32_gpio_sensors_hub_bin-$(date +%Y-%m-%d).zip -j -@
pwd
ls *.zip
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bbn_esp32_gpio_sensors_hub_bin*.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true