Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup pio build workflow for WatsonIOT #39

Merged
merged 1 commit into from
Oct 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build-fw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PlatformIO CI

on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
firmwares: [WatsonIoT] # Add comma seperated path/to/fw folders

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: Install library dependencies
run: pio lib -g install knolleary/PubSubClient@^2.8 bblanchon/ArduinoJson@^6.16.1 "adafruit/Adafruit NeoPixel@^1.7.0" smfsw/Queue@^1.9 gmag11/ESPNtpClient@^0.2.5

- name: Run PlatformIO
run: pio ci --lib="." --lib="WatsonIoT/lib/Adxl355" --board=esp32dev -v
env:
PLATFORMIO_CI_SRC: ${{ matrix.firmwares }}
PLATFORMIO_BUILD_UNFLAGS: -Werror=reorder