This actions sets up PlatformIO for use in actions.
- name: Setup PlatformIO
uses: EnviroDIY/[email protected]
- name: Setup PlatformIO
uses: EnviroDIY/[email protected]
with:
platformio-version: "6.1"
See inputs for more info.
To use this example, create a .github/workflows/build-platformio.yml
file in your repository and paste the contents below in it.
name: Build PlatformIO project
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout repository
- name: Checkout code
uses: actions/checkout@v4
# Setup PlatformIO in PATH
- name: Setup PlatformIO
uses: EnviroDIY/[email protected]
# Build the PlatformIO project
- name: Build PlatformIO project
run: pio run
Use the with
keyword to specify these inputs
Specify the PlatformIO to set up. Use semantic versioning (e.g. "6.1.11", "6.1" or "6"). If no version is specified, the newest version is used.
Distributed under the MIT license. See LICENSE.md for more information.