Fixes for github-ci

This commit is contained in:
Luc 2021-04-12 08:25:40 +02:00
parent 60bb3af46d
commit 33b155c5b8
4 changed files with 4 additions and 3 deletions

View File

@ -36,5 +36,5 @@ if [[ "$ide" == "arduino" ]];
arduino-builder -hardware "$ARDUINO_IDE_PATH/hardware" -tools "$ARDUINO_IDE_PATH/tools-builder" -tools "$ARDUINO_IDE_PATH/tools" -libraries "$ARDUINO_IDE_PATH/libraries" -fqbn=$fqbn -compile -logger=human -core-api-version=10810 ./esp3d/esp3d.ino
else
platformio run -e esp32dev
platformio run -e esp8266dev
platformio run -e esp8266
fi

View File

@ -21,6 +21,7 @@ then
else
echo "Build failed"
curl -v -H User-Agent:bot -H Content-Type:application/json -d '{"avatar_url":"https://pngimg.com/uploads/github/github_PNG90.png","username":"github-action","embeds":[{"author":{"name":"Build #'"$step"' Failed - '"$GITHUB_ACTOR_NAME"'","url":"https://github.com/'"$GITHUB_REPOSITORY"'/actions/runs/'"$GITHUB_RUN_ID"'"},"url":"https://github.com/'"$GITHUB_REPOSITORY"'/actions/runs/'"$GITHUB_RUN_ID"'","title":"['"$GITHUB_REPOSITORY"':job#'"$GITHUB_RUN_NUMBER"'] ","color":16711680,"fields":[{"name":"_ _", "value": "'"$COMMIT_FORMATTED"' - '"$BODYMESSAGE"'"}],"timestamp":"'"$TIMESTAMP"'","footer":{"text":"ESP3D CI"}}]}' $DISCORD_WEBHOOK_URL;
exit 1
fi

View File

@ -12,7 +12,7 @@ echo "Clone esp32 core"
cd $HOME/arduino_ide/hardware
mkdir esp32
cd esp32
git clone https://github.com/espressif/arduino-esp32.git esp32
git clone -b 1.0.4 https://github.com/espressif/arduino-esp32.git esp32
cd esp32
git submodule update --init
cd tools

View File

@ -17,7 +17,7 @@ data_dir = esp3d/data
default_envs = esp8266
[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git
platform = espressif32@3.0.0
;theboard
board = esp32dev
framework = arduino