-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 956 Bytes
/
build-kyb.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
name: Build Arduino Leonardo Kyb
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 0 1 * *" # Runs at midnight on the first day of each month
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository with submodules
uses: actions/checkout@v3
with:
submodules: true # Initializes submodules at the specified commit without updating
fetch-depth: 0 # Ensures full commit history for submodules
- name: Set up Arduino CLI
uses: arduino/setup-arduino-cli@v2
- name: Install Arduino core
run: |
arduino-cli core update-index
arduino-cli core install arduino:avr
- name: Install Keyboard library
run: |
arduino-cli lib install "Keyboard"
- name: Compile Sketch
run: |
arduino-cli compile --fqbn arduino:avr:leonardo --verify a500kybhid/a500kybhid.ino