Skip to content

Commit

Permalink
Migrate from ArduinoCI to PlatformIO
Browse files Browse the repository at this point in the history
  • Loading branch information
vzahradnik committed Sep 17, 2024
1 parent ed33ef4 commit c53cce5
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 28 deletions.
8 changes: 0 additions & 8 deletions .arduino-ci.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/arduino_ci.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- examples/AnalogDigitalInputs/AnalogDigitalInputs.ino
- examples/DCMotorCurrentMeasurement/DCMotorCurrentMeasurement.ino
- examples/DCMotorPwm/DCMotorPwm.ino
- examples/DCMotorSimple/DCMotorSimple.ino
- examples/HelloWorld/HelloWorld.ino
- examples/TemperatureSensor/TemperatureSensor.ino
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build PlatformIO examples
run: pio ci --project-conf=platformio.ini
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ACDU board

[![Arduino_CI](https://github.com/JSC-TechMinds/acdu-support-library/actions/workflows/arduino_ci.yml/badge.svg)](https://github.com/JSC-TechMinds/acdu-support-library/actions/workflows/arduino_ci.yml)
[![PlatformIO](https://github.com/JSC-TechMinds/acdu-support-library/actions/workflows/platformio.yml/badge.svg)](https://github.com/JSC-TechMinds/acdu-support-library/actions/workflows/platformio.yml)
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/JSC-TechMinds/acdu-support-library/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/JSC-TechMinds/acdu-support-library.svg?maxAge=3600)](https://github.com/JSC-TechMinds/acdu-support-library/releases)
[![JSC TechMinds](https://img.shields.io/badge/JSC-TechMinds-green.svg)](https://www.jsctm.cz)
Expand Down
16 changes: 8 additions & 8 deletions examples/PlatformIO project template/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ lib_deps =
Wire
jsc/ACDU@^1.0.2
jsc/Ticker@^2.1.0
paulstoffregen/OneWire@^2.3.7
olikraus/U8g2@^2.34.22
paulstoffregen/OneWire@^2.3.8
olikraus/U8g2@^2.35.27

; Optional: ArduinoLog; improved logging to serial.
; https://github.com/thijse/Arduino-Log
; thijse/ArduinoLog@^1.1.1
; https://github.com/JSC-TechMinds/Arduino-Log
; jsc/ArduinoLog@^1.2.1

; Optional: Time library
; paulstoffregen/Time@^1.6.1
Expand All @@ -43,10 +43,10 @@ lib_deps =
; much more advanced than our examples here. Perhaps you can save
; significant development time if you contact us first. We provide
; commercial TcMenu/ACDU support as well.
; davetcc/tcMenu@^4.0.0
; davetcc/IoAbstraction@^4.0.0
; davetcc/TaskManagerIO@^1.3.5
; davetcc/tcUnicodeHelper@^1.0.0
; tcmenu/tcMenu@^4.3.1
; tcmenu/IoAbstraction@^4.3.0
; tcmenu/TaskManagerIO@^1.4.3
; tcmenu/tcUnicodeHelper@^1.1.1

; Optional: Read temperature over 1-Wire
; milesburton/DallasTemperature@^3.11.0
13 changes: 13 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[env:esp32dev]
framework = arduino
platform = espressif32
board = esp32dev

lib_deps =
SPI
Wire
olikraus/U8g2@^2.35.27
jsc/Ticker@^2.1.0
paulstoffregen/OneWire@^2.3.8
milesburton/DallasTemperature@^3.11.0

0 comments on commit c53cce5

Please sign in to comment.