with real time heave and wave envelope #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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@v6 | |
| - name: Compile sketch | |
| uses: ArminJo/arduino-test-compile@v3 | |
| with: | |
| arduino-board-fqbn: esp32:esp32:m5stack_atoms3:CDCOnBoot=cdc | |
| arduino-platform: esp32:esp32@3.1.3 | |
| platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
| required-libraries: M5Unified@0.2.11,M5GFX@0.2.18,Eigen@0.3.2 | |
| sketch-names: "*.ino" | |
| sketch-names-find-start: atomS3R_*/* | |
| extra-arduino-cli-args: "--warnings default --build-property compiler.libraries.ldflags=-Wl,--allow-multiple-definition --build-property compiler.cpp.extra_flag=-mvector --build-property compiler.cpp.extra_flag=-funroll-loops --build-property compiler.cpp.extra_flag=-fno-finite-math-only" | |
| set-build-path: true | |
| - name: Find versions | |
| run: | | |
| find /home/runner -name esptool\* | |
| find /home/runner -name boot_app0.bin | |
| ls -la /home/runner/ | |
| ls -l /home/runner/.arduino15/packages/esp32/tools/esptool_py/* | |
| - name: Make merged .bin | |
| run: > | |
| $HOME/.arduino15/packages/esp32/tools/esptool_py/4.9.dev3/esptool | |
| --chip esp32s3 merge_bin -o $HOME/work/bbn_compass/bbn_compass/atomS3R_compass/build/atomS3R_compass_firmware.bin | |
| --flash_mode dio --flash_freq 80m --flash_size 8MB | |
| 0x0 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass/build/atomS3R_compass.ino.bootloader.bin" | |
| 0x8000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass/build/atomS3R_compass.ino.partitions.bin" | |
| 0xe000 "$HOME/.arduino15/packages/esp32/hardware/esp32/3.1.3/tools/partitions/boot_app0.bin" | |
| 0x10000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass/build/atomS3R_compass.ino.bin"; | |
| $HOME/.arduino15/packages/esp32/tools/esptool_py/4.9.dev3/esptool | |
| --chip esp32s3 merge_bin -o $HOME/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/atomS3R_compass_mahony_firmware.bin | |
| --flash_mode dio --flash_freq 80m --flash_size 8MB | |
| 0x0 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/atomS3R_compass_mahony.ino.bootloader.bin" | |
| 0x8000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/atomS3R_compass_mahony.ino.partitions.bin" | |
| 0xe000 "$HOME/.arduino15/packages/esp32/hardware/esp32/3.1.3/tools/partitions/boot_app0.bin" | |
| 0x10000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/atomS3R_compass_mahony.ino.bin"; | |
| $HOME/.arduino15/packages/esp32/tools/esptool_py/4.9.dev3/esptool | |
| --chip esp32s3 merge_bin -o $HOME/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/atomS3R_full_marine_ins_firmware.bin | |
| --flash_mode dio --flash_freq 80m --flash_size 8MB | |
| 0x0 "$HOME/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/atomS3R_full_marine_ins.ino.bootloader.bin" | |
| 0x8000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/atomS3R_full_marine_ins.ino.partitions.bin" | |
| 0xe000 "$HOME/.arduino15/packages/esp32/hardware/esp32/3.1.3/tools/partitions/boot_app0.bin" | |
| 0x10000 "$HOME/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/atomS3R_full_marine_ins.ino.bin" | |
| - name: Make zip | |
| run: | | |
| ls /home/runner/work/bbn_compass/bbn_compass/atomS3R_compass/build/*.bin /home/runner/work/bbn_compass/bbn_compass/atomS3R_compass/build/*.csv | zip atomS3R_compass_bin-$(date +%Y-%m-%d).zip -j -@ | |
| ls /home/runner/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/*.bin /home/runner/work/bbn_compass/bbn_compass/atomS3R_compass_mahony/build/*.csv | zip atomS3R_compass_mahony_bin-$(date +%Y-%m-%d).zip -j -@ | |
| ls /home/runner/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/*.bin /home/runner/work/bbn_compass/bbn_compass/atomS3R_full_marine_ins/build/*.csv | zip atomS3R_full_marine_ins_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: atomS3R_*_bin*.zip | |
| tag: ${{ github.ref == 'refs/heads/main' && 'vTest' || github.ref }} | |
| overwrite: true | |
| file_glob: true |