Skip to content

Commit

Permalink
fixed compiler error (Linux/mac)
Browse files Browse the repository at this point in the history
added CI scripts
added git ignore
  • Loading branch information
Marcus10110 committed Oct 10, 2021
1 parent ed02ad9 commit fa58d50
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/deps
/output
/build
2 changes: 1 addition & 1 deletion CurrentTimeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <BLEClient.h>
#include <Arduino.h>
#include <Time.h>
#include <time.h>

#include <esp32-hal-log.h>

Expand Down
12 changes: 12 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

export PATH=$PATH:deps/bin
rm -rf output
rm -rf build
mkdir -p output

arduino-cli compile --fqbn esp32:esp32:featheresp32 DelSolClock -e

cp build/*/*.ino.bin output/
18 changes: 18 additions & 0 deletions ci/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e

mkdir -p $HOME/Arduino
mkdir -p $HOME/Arduino/libraries
mkdir -p deps
pushd deps
export PATH=$PATH:$PWD/bin
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
popd
arduino-cli config init
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
arduino-cli core install esp32:[email protected] --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

arduino-cli lib install TinyGPSPlus
arduino-cli lib install "Adafruit ST7735 and ST7789 Library"
arduino-cli lib install "SPIFFS ImageReader Library"

0 comments on commit fa58d50

Please sign in to comment.