Skip to content

Commit d8461e9

Browse files
Add platformio ci and a dummy arduino project (#113)
1 parent d4c6426 commit d8461e9

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

.circleci/config.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
version: 2.0
22
jobs:
3-
build:
3+
rtems:
44
docker:
55
- image: sergiusthebest/rtems-arm-rasberrypi-ci:latest
66
steps:
77
- checkout
8-
- run: cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE && cd build && make -j
8+
- run: cmake -H. -Bbuild -DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE && cd build && make -j
9+
platformio:
10+
docker:
11+
- image: sergiusthebest/platformio-ci:latest
12+
steps:
13+
- checkout
14+
- run: pio run -d samples/Arduino
15+
workflows:
16+
version: 2
17+
workflow:
18+
jobs:
19+
- rtems
20+
- platformio

samples/Arduino/platformio.ini

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
11+
[platformio]
12+
include_dir = ../../include
13+
14+
[env:esp8266]
15+
platform = espressif8266
16+
board = nodemcuv2
17+
framework = arduino
18+
19+
[env:esp32]
20+
platform = espressif32
21+
board = esp32dev
22+
framework = arduino

samples/Arduino/src/main.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <Arduino.h>
2+
#include <plog/Log.h>
3+
4+
void setup()
5+
{
6+
}
7+
8+
void loop()
9+
{
10+
delay(1000); // Wait for a second
11+
}

0 commit comments

Comments
 (0)