Skip to content

Commit 59c0d11

Browse files
committed
Adding compile tests
1 parent 4b62968 commit 59c0d11

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/compile.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: Inkplate_Motion:stm32:Inkplate6Motion
12+
additional-sketch-paths: |
13+
- examples
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Compile examples
18+
uses: arduino/compile-sketches@v1
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
platforms: |
22+
- source-url: https://github.com/SolderedElectronics/Dasduino-Board-Definitions-for-Arduino-IDE/raw/master/package_Dasduino_Boards_index.json
23+
name: Inkplate_Motion:stm32
24+
25+
fqbn: ${{ matrix.board.fqbn }}
26+
libraries: |
27+
- source-path: ./
28+
sketch-paths: |
29+
${{ matrix.additional-sketch-paths }}
30+
cli-compile-flags: |
31+
- --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/[email protected]
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: [email protected]
22+
message: "Committing clang-format changes"

0 commit comments

Comments
 (0)