Skip to content

Commit e67633b

Browse files
committed
Add workflows
1 parent 7dece65 commit e67633b

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed

.clang-format

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
BasedOnStyle: Microsoft
3+
AlignConsecutiveMacros: 'true'
4+
MaxEmptyLinesToKeep: '2'
5+
TabWidth: '4'
6+
UseTab: Never
7+
IncludeBlocks: Preserve
8+
SortIncludes: false
9+
10+
...

.github/workflows/compile.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Compile Examples
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
7+
strategy:
8+
matrix:
9+
include:
10+
- board:
11+
fqbn: soldered-inkplate-boards:esp32:Inkplate5V2
12+
additional-sketch-paths: |
13+
- examples/Inkplate5V2
14+
- board:
15+
fqbn: soldered-inkplate-boards:esp32:Inkplate6
16+
additional-sketch-paths: |
17+
- examples/Inkplate6
18+
- board:
19+
fqbn: soldered-inkplate-boards:esp32:Inkplate6V2
20+
additional-sketch-paths: |
21+
- examples/Inkplate6
22+
- board:
23+
fqbn: soldered-inkplate-boards:esp32:Inkplate10
24+
additional-sketch-paths: |
25+
- examples/Inkplate10
26+
- board:
27+
fqbn: soldered-inkplate-boards:esp32:Inkplate10V2
28+
additional-sketch-paths: |
29+
- examples/Inkplate10
30+
- board:
31+
fqbn: soldered-inkplate-boards:esp32:Inkplate6Flick
32+
additional-sketch-paths: |
33+
- examples/Inkplate6FLICK
34+
- board:
35+
fqbn: soldered-inkplate-boards:esp32:Inkplate6COLOR
36+
additional-sketch-paths: |
37+
- examples/Inkplate6COLOR
38+
- board:
39+
fqbn: soldered-inkplate-boards:esp32:Inkplate2
40+
additional-sketch-paths: |
41+
- examples/Inkplate2
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
- name: Install ESP32 platform dependencies
46+
run: pip3 install pyserial
47+
- name: Compile examples
48+
uses: arduino/compile-sketches@v1
49+
with:
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
platforms: |
52+
- source-url: https://github.com/SolderedElectronics/Inkplate-Board-Definitions-for-Arduino-IDE/raw/refs/heads/main/package_Inkplate_Boards_index.json
53+
name: soldered-inkplate-boards:esp32
54+
55+
fqbn: ${{ matrix.board.fqbn }}
56+
libraries: |
57+
- source-path: ./
58+
- name: ArduinoJson
59+
- name: Time
60+
- source-url: https://github.com/SolderedElectronics/Soldered-MFRC522-RFID-Reader-Arduino-Library.git
61+
- source-url: https://github.com/SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library.git
62+
- source-url: https://github.com/SolderedElectronics/Soldered-BME280-BME680-Gas-Sensor-Arduino-Library.git
63+
sketch-paths: |
64+
${{ matrix.additional-sketch-paths }}
65+
cli-compile-flags: |
66+
- --warnings="default"

.github/workflows/format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Run clang-format Linter
2+
3+
on: [push]
4+
5+
jobs:
6+
format:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: DoozyX/clang-format-lint-action@v0.18.2
12+
with:
13+
source: "./src"
14+
exclude: "./src/libs"
15+
extensions: "h,cpp,c,ino"
16+
clangFormatVersion: 12
17+
inplace: True
18+
- uses: EndBug/add-and-commit@v4
19+
with:
20+
author_name: Clang Robot
21+
author_email: robot@example.com
22+
message: "Committing clang-format changes"

0 commit comments

Comments
 (0)