Skip to content

Commit f7804d9

Browse files
committed
Enable CI/CD
1 parent 6378a2d commit f7804d9

File tree

5 files changed

+123
-1
lines changed

5 files changed

+123
-1
lines changed

.github/workflows/platformio.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: PlatformIO CI
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
board:
10+
- megaatmega2560
11+
- esp32dev
12+
- esp01_1m
13+
# example:
14+
# Arduino32
15+
# - examples/arduino32/colorTftEthernet32
16+
# - examples/arduino32/dynamicMenuItems
17+
# - examples/arduino32/nano33ble
18+
# - examples/arduino32/picoAdafruitDashboard
19+
# - examples/arduino32/picoAw9523LcdEncoder
20+
# - examples/arduino32/piPicoTftTouch
21+
# - examples/arduino32/stm32DuinoDemo
22+
# MBED
23+
# - examples/mbed/stm32EncoderLcdI2c
24+
# - examples/mbed/stm32f429FrameBuffer
25+
# - examples/mbed/stm32OledEncoder
26+
include:
27+
# AVR
28+
- example: examples/avr/adafruitST7735Mega
29+
board: megaatmega2560
30+
- example: examples/avr/analogDfRobot
31+
board: megaatmega2560
32+
- example: examples/avr/analogJoystick1306Ascii
33+
board: megaatmega2560
34+
- example: examples/avr/keyboardEthernetShield
35+
board: megaatmega2560
36+
- example: examples/avr/nokia5110
37+
board: megaatmega2560
38+
# ESP
39+
- example: examples/esp/esp32Amplifier
40+
board: esp32dev
41+
- example: examples/esp/esp32s2Saola
42+
board: esp32dev
43+
- example: examples/esp/esp32s3TftEncoder
44+
board: esp32dev
45+
- example: examples/esp/esp32SimHub
46+
board: esp32dev
47+
- example: examples/esp/esp8266WifiOled
48+
board: esp01_1m
49+
- example: examples/esp/espCapTouchTft
50+
board: esp32dev
51+
- example: examples/esp/espCapTouchTft
52+
board: esp01_1m
53+
- example: examples/esp/simpleU8g2
54+
board: esp32dev
55+
- example: examples/esp/simpleU8g2
56+
board: esp01_1m
57+
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: actions/cache@v4
61+
with:
62+
path: |
63+
~/.cache/pip
64+
~/.platformio/.cache
65+
key: ${{ runner.os }}-pio
66+
- uses: actions/setup-python@v5
67+
with:
68+
python-version: '3.12'
69+
- name: Install PlatformIO Core
70+
run: pip install --upgrade platformio
71+
72+
- name: Build PlatformIO examples
73+
run: pio ci --lib "." --project-conf=platformio.ini --environment ${{ matrix.board }} ${{ matrix.example }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
.development
33
.vscode
4+
.pio
45

56
# User-specific files
67
*.suo

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# TcMenu library for Arduino and mbed.
2+
[![PlatformIO](https://github.com/davetcc/tcMenuLib/actions/workflows/platformio.yml/badge.svg)](https://github.com/davetcc/tcMenuLib/actions/workflows/platformio.yml)
3+
[![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/davetcc/tcMenuLib/blob/master/LICENSE)
4+
[![GitHub release](https://img.shields.io/github/release/davetcc/tcMenuLib.svg?maxAge=3600)](https://github.com/davetcc/tcMenuLib/releases)
5+
[![davetcc](https://img.shields.io/badge/davetcc-dev-blue.svg)](https://github.com/davetcc)
6+
[![JSC electronics](https://img.shields.io/badge/JSC-electronics-green.svg)](https://github.com/jsc-electronics)
27

38
## Summary
49

examples/esp/esp32SimHub/appTheme.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void setupTheme() {
151151
.apply();
152152

153153
themeBuilder.menuItemOverride(menuEngine)
154-
.onRow(3).multiCol(1, 1)
154+
.onRowCol(3, 1, 1)
155155
.withImage4bpp(Coord(64, 64), engineBitmap_palette0, engineBitmap0)
156156
.apply();
157157

platformio.ini

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[env]
2+
framework = arduino
3+
4+
lib_deps =
5+
SPI
6+
davetcc/IoAbstraction@^4.0.2
7+
davetcc/tcUnicodeHelper@^1.0.0
8+
davetcc/LiquidCrystalIO@^1.4.3
9+
bodmer/TFT_eSPI@^2.5.43
10+
adafruit/Adafruit GFX Library@^1.11.9
11+
adafruit/Adafruit BusIO@^1.16.1
12+
adafruit/Adafruit FT6206 Library@^1.1.0
13+
14+
[env:megaatmega2560]
15+
platform = atmelavr
16+
board = megaatmega2560
17+
18+
lib_deps =
19+
${env.lib_deps}
20+
adafruit/Adafruit PCD8544 Nokia 5110 LCD library@^2.0.3
21+
uipethernet/UIPEthernet@^2.0.12
22+
adafruit/Adafruit ST7735 and ST7789 Library@^1.10.4
23+
greiman/SSD1306Ascii@^1.3.5
24+
25+
[env:esp32dev]
26+
platform = espressif32
27+
board = esp32dev
28+
29+
lib_deps =
30+
${env.lib_deps}
31+
FS
32+
SPIFFS
33+
olikraus/U8g2@^2.35.17
34+
adafruit/Adafruit ILI9341@^1.6.1
35+
36+
[env:esp01_1m]
37+
platform = espressif8266
38+
board = esp01_1m
39+
40+
lib_deps =
41+
${env.lib_deps}
42+
ESP8266WiFi
43+
olikraus/U8g2@^2.35.17

0 commit comments

Comments
 (0)