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

Started to implement CI pipeline to automatically build software with PlatformIO #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


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

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Strip disclaimer from source file
run: |
sed -i '1d' ./software/ventilator-control/diy_06.ino
head ./software/ventilator-control/diy_06.ino
- name: Run platformio
run: platformio run -d ./software/ventilator-control/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Wir arbeiten an verschiedensten Themen. Zum einen etwa an der Weiterentwicklung
* [/ software / mass-airflow-sensor / sensor-software/](/software/mass-airflow-sensor/sensor-software/): die Software, die auf dem Sensor selbst läuft, der Luftmassesensor-Daten bereitstellt (Mock-Up)
* [/ software / ventilator-control/](/software/ventilator-control/): die Software für die Steuerungs-Plattform des Beatmungsgerätes

# Software Status

ventilator-control ![PlatformIO CI](https://github.com/wirthual/diy-beatmungsgeraet/workflows/PlatformIO%20CI/badge.svg)

# Weiterführende Links
* [Homepage des WirvsVirus Hackathon](https://wirvsvirushackathon.org/)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Disclaimer "This is not a medical device and it must not be used in a clinical environment."
#Disclaimer "This is not a medical device and it must not be used in a clinical environment."

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
Expand Down
17 changes: 17 additions & 0 deletions software/ventilator-control/platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[platformio]
default_envs = nodemcuv2
src_dir = .
src_filter = -<diy_01.ino.*>

[env:nodemcuv2]
platform = espressif8266
framework = arduino
board = nodemcuv2

lib_deps =
Blynk
Adafruit Motor Shield V2 Library@1.0.8
Encoder
Adafruit BME680 Library@1.0.7
Adafruit Unified Sensor@1.1.2
BSEC Software Library@1.5.1474