mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-17 08:25:55 +08:00
Fixes for github-ci
This commit is contained in:
parent
60bb3af46d
commit
33b155c5b8
2
.github/ci/build-esp3d.sh
vendored
2
.github/ci/build-esp3d.sh
vendored
@ -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
|
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
|
else
|
||||||
platformio run -e esp32dev
|
platformio run -e esp32dev
|
||||||
platformio run -e esp8266dev
|
platformio run -e esp8266
|
||||||
fi
|
fi
|
||||||
|
1
.github/ci/final-check.sh
vendored
1
.github/ci/final-check.sh
vendored
@ -21,6 +21,7 @@ then
|
|||||||
else
|
else
|
||||||
echo "Build failed"
|
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;
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
2
.github/ci/install-esp32.sh
vendored
2
.github/ci/install-esp32.sh
vendored
@ -12,7 +12,7 @@ echo "Clone esp32 core"
|
|||||||
cd $HOME/arduino_ide/hardware
|
cd $HOME/arduino_ide/hardware
|
||||||
mkdir esp32
|
mkdir esp32
|
||||||
cd 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
|
cd esp32
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cd tools
|
cd tools
|
||||||
|
@ -17,7 +17,7 @@ data_dir = esp3d/data
|
|||||||
default_envs = esp8266
|
default_envs = esp8266
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = https://github.com/platformio/platform-espressif32.git
|
platform = espressif32@3.0.0
|
||||||
;theboard
|
;theboard
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
Loading…
x
Reference in New Issue
Block a user