Skip to content

wip

wip #26

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@v3
- name: Checkout EthernetLarge library
uses: actions/checkout@v3
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:esp32@2.0.15
platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
required-libraries: M5AtomS3@1.0.0,M5Unified@0.2.1,OneWire@2.3.8,DallasTemperature@3.9.0,M5Unit-ENV@1.1.1,M5-ADS1115@1.0.0,NewPing@1.9.7,Adafruit_VL53L0X@1.2.4,Adafruit SGP30 Sensor@2.0.3,Adafruit BME680 Library@2.0.5,Adafruit VEML7700 Library@2.1.6,SparkFun AS7331 Arduino Library@2.1.1,SparkFun AS3935 Lightning Detector Arduino Library@1.4.9,M5-Ethernet@4.0.0,M5GFX@0.2.0,SSLClient@1.6.11,UrlEncode@1.0.1,ReactESP@2.1.0
sketch-names: "*.ino"
sketch-names-find-start: bbn_*
extra-arduino-cli-args: "--warnings default"
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_sensors_hub/bbn_esp32_sensors_hub/build/bbn_esp32_sensors_hub_firmware.bin
--flash_mode dio --flash_freq 80m --flash_size 4MB
0x0 "$HOME/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/bbn_esp32_sensors_hub.ino.bootloader.bin"
0x8000 "$HOME/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/bbn_esp32_sensors_hub.ino.partitions.bin"
0xe000 "$HOME/.arduino15/packages/esp32/hardware/esp32/2.0.15/tools/partitions/boot_app0.bin"
0x10000 "$HOME/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/bbn_esp32_sensors_hub.ino.bin"
- name: Make zip
run: |
ls /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/*.bin /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/*.csv | zip bbn_esp32_sensors_hub_bin-$(date +%Y-%m-%d).zip -j -@
pwd
ls *.zip