forked from traviscea/Pi-Arduino-Digital-Dash
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.1 KB
/
arduino-compile.yml
File metadata and controls
47 lines (38 loc) · 1.1 KB
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
name: Arduino Sketch Compilation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
compile-sketches:
runs-on: ubuntu-latest
strategy:
matrix:
sketch:
- travis.cea_Digital_Dash.ino
- Haltech_To_Arduino_DRAFT.ino
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Install Arduino Mega core
run: |
arduino-cli core update-index
arduino-cli core install arduino:avr
- name: Install required libraries
run: |
arduino-cli lib install "MCP_CAN_lib"
- name: Compile ${{ matrix.sketch }}
run: |
arduino-cli compile --fqbn arduino:avr:mega:cpu=atmega2560 "${{ matrix.sketch }}"
- name: Upload compilation artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: ${{ matrix.sketch }}-hex
path: |
${{ matrix.sketch }}.hex
${{ matrix.sketch }}.elf
retention-days: 30