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

Add CI configuration for most popular firmwares, and fix PlatformIO build recipes #49

Merged
merged 6 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
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
87 changes: 87 additions & 0 deletions .github/workflows/platformio-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: PlatformIO CI

on:
push:
branches: [ main ]
paths:
- '.github/workflows/platformio-ci.yaml'
- 'scale-adjust/**'
- 'node-gprs-http/**'
- 'node-wifi-mqtt/**'
- 'node-esp8266-generic/**'
- 'node-esp32-generic/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/platformio-ci.yaml'
- 'scale-adjust/**'
- 'node-gprs-http/**'
- 'node-wifi-mqtt/**'
- 'node-esp8266-generic/**'
- 'node-esp32-generic/**'

# Allow job to be triggered manually.
workflow_dispatch:

# Cancel in-progress jobs when pushing to the same branch.
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Acquire sources
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.pio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
requirements*.txt

- name: Install PlatformIO
run: |
pip install --upgrade --requirement requirements-test.txt

- name: Build scale-adjust / ADS1231
if: success() || failure()
run: |
pio run --project-dir scale-adjust/ADS1231

- name: Build scale-adjust / HX711
if: success() || failure()
run: |
pio run --project-dir scale-adjust/HX711

- name: Build node-gprs-http
if: success() || failure()
run: |
pio run --project-dir node-gprs-http

- name: Build node-wifi-mqtt
if: success() || failure()
run: |
pio run --project-dir node-wifi-mqtt

- name: Build node-esp8266-generic
if: success() || failure()
run: |
pio run --project-dir node-esp8266-generic

- name: Build node-esp32-generic
if: success() || failure()
run: |
pio run --project-dir node-esp32-generic
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
[submodule "libraries/RobTillaart-Arduino"]
path = libraries/RobTillaart-Arduino
url = https://github.com/RobTillaart/Arduino
[submodule "libraries/RobTillaart-libDHT"]
path = libraries/RobTillaart-libDHT
url = https://github.com/RobTillaart/libDHT
[submodule "libraries/DS3231"]
path = libraries/DS3231
url = https://github.com/jcastaneyra/ds3231_library
Expand Down
1 change: 0 additions & 1 deletion libraries/RobTillaart-libDHT
Submodule RobTillaart-libDHT deleted from 5c7eb7
28 changes: 28 additions & 0 deletions libraries/RobTillaart-libDHT/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
Loading