mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
* 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
35 lines
772 B
YAML
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
|
|
|