-
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (26 loc) · 801 Bytes
/
Arduino_CI.yml
File metadata and controls
33 lines (26 loc) · 801 Bytes
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
name: Arduino CI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Arduino
uses: arduino/setup-arduino-cli@v2
- name: Clone USB Host Shield 2.0 library from GitHub
run: |
git clone https://github.com/felis/USB_Host_Shield_2.0.git ~/Arduino/libraries/USB_Host_Shield_2.0
- name: Install Arduino Libraries
run: |
arduino-cli lib install servo
arduino-cli core install arduino:avr
- name: Build and Test
run: |
arduino-cli compile --fqbn arduino:avr:uno . > build.log
env:
ARDUINO_BOARD: 'arduino:avr:uno'
working-directory: ${{ github.workspace }}