-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.47 KB
/
compile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Compile Examples
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- board:
fqbn: Inkplate_Motion:stm32:Inkplate6Motion
additional-sketch-paths: |
- examples
steps:
# Ensure Bash for compatibility
- name: Ensure Bash Shell
run: sudo ln -sf /bin/bash /bin/sh
# Checkout code
- name: Checkout
uses: actions/checkout@v3
# -----------------------------------
# Cache the Arduino packages folder
# -----------------------------------
- name: Cache Arduino dependencies
uses: actions/cache@v3
with:
path: ~/.arduino15
key: ${{ runner.os }}-arduino15-${{ hashFiles('**/*.ino', 'library.properties', 'library.json') }}
restore-keys: |
${{ runner.os }}-arduino15-
# Compile all examples
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
platforms: |
- source-url: https://github.com/SolderedElectronics/Dasduino-Board-Definitions-for-Arduino-IDE/raw/master/package_Dasduino_Boards_index.json
name: Inkplate_Motion:stm32
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- source-path: ./
- name: ArduinoJson
sketch-paths: |
${{ matrix.additional-sketch-paths }}