Files
OpenEPaperLink/.github/actions/setup-pio/action.yml
Matthew Kelch 1ec762ffdb Conditional build / test pipeline (#287)
* POC: Conditional Build Jobs / Steps

Demonstrate a built/test pipeline which make use of both conditional jobs and steps.

* use paths-filter fallback (no token)

* fix typo in cache key

* remove test file

* add in nRF_Bootloader to confitional build
2024-05-06 21:01:22 +02:00

35 lines
772 B
YAML

name: Setup PlatformIO
description: 'Installs PlatformIO and necessary dependencies.'
inputs:
python-version:
description: 'Set Python version (optional)'
required: false
default: '3.9'
runs:
using: "composite"
steps:
- name: Cache pip
id: cache-pip
uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-${{ inputs.python-version }}-pio
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install PlatformIO Core
shell: bash
run: pip install --upgrade platformio
- name: Install intelhex
shell: bash
run: pip install --upgrade intelhex