forked from n-vr/setup-platformio-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (30 loc) · 908 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Setup PlatformIO"
description: "Set up platformIO in your GitHub Actions workflow"
inputs:
platformio-version:
description: "PlatformIO version to use. (e.g. 6.1.11, 6.1 or 6)"
default: "newest"
runs:
using: "composite"
steps:
- name: Write the requirements file
shell: bash
run: |
echo "wheel" > requirements.txt
echo "platformio" >> requirements.txt
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- name: Install Latest PlatformIO
run: pip install -U platformio
shell: bash
if: ${{ inputs.platformio-version == 'newest' }}
- name: Install specified PlatformIO
run: pip install platformio==${{ inputs.platformio-version }}
shell: bash
if: ${{ inputs.platformio-version != 'newest' }}
branding:
icon: "play"
color: "orange"