Skip to content

Commit

Permalink
Create build-examples.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 authored May 26, 2024
1 parent 6714afc commit 6ee6578
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-firmware
on:
workflow_dispatch:
# push:
# paths:
# - 'firmware/**'
jobs:
build-with-pio:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Build examples with PlatformIO
run: |
cd examples
pio upgrade
cd basic-config
pio run

0 comments on commit 6ee6578

Please sign in to comment.