From cba2aecb125f7de81e19ea8dddfd58a803e595af Mon Sep 17 00:00:00 2001 From: Thomas Ballmann Date: Mon, 17 May 2021 20:58:16 +0200 Subject: [PATCH] Create build-platformio.sh --- cd/build-platformio.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 cd/build-platformio.sh diff --git a/cd/build-platformio.sh b/cd/build-platformio.sh new file mode 100644 index 0000000..3670758 --- /dev/null +++ b/cd/build-platformio.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Exit immediately if a command exits with a non-zero status. +set -e + +# Make sure we are inside the github workspace +cd $GITHUB_WORKSPACE + +# Install PlatformIO CLI +export PATH=$PATH:~/.platformio/penv/bin +curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -o get-platformio.py +python3 get-platformio.py