Files
DIY-Filament-Dryer/.github/workflows/build.yaml
T
2022-02-14 00:05:03 -05:00

49 lines
1.3 KiB
YAML

# This is the name of the workflow, visible on GitHub UI.
name: Build Code Base
# Here we tell GitHub to run the workflow when a commit
# is pushed or a Pull Request is opened.
on:
pull_request:
branches: [master, main]
push:
branches: [master, main]
# paths:
# - "**.ino"
# - "**.h"
# - "**.c"
# - "**.platformio.ini"
# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.
jobs:
Build-Platformio:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run
working-directory: Firmware/platformio