diff --git a/.github/actions/platformio-env/action.yml b/.github/actions/platformio-env/action.yml new file mode 100644 index 00000000..2f9fff18 --- /dev/null +++ b/.github/actions/platformio-env/action.yml @@ -0,0 +1,15 @@ +name: 'platformio-env' +description: 'Install Platform.IO environment' +runs: + using: "composite" + steps: + - id: install-platformio-env + shell: bash + run: | + sudo apt-get update + export DEBIAN_FRONTEND=noninteractive + sudo apt-get install -y git curl python3 python3-pip python3-venv git cmake + curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py + python3 get-platformio.py + echo 'export PATH=$PATH:~/.platformio/penv/bin' >> ~/.bashrc +