-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI by using separate action to install PlatformIO environment
* Use action from [micro_ros_platformio](https://github.com/micro-ROS/micro_ros_platformio/tree/main) to install PlatformIO in workflow runner. * Removes hacky and problematic workarounds from workflow (manually messing with `.platformio` and `penv`, python install). (cherry picked from commit fc39599)
- Loading branch information
1 parent
105a2b0
commit 04b22bf
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters