-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.44 KB
/
build_megaavr.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
55
56
57
58
59
name: Build / MegaAVR
on:
workflow_dispatch:
pull_request:
paths:
- 'src/**'
- '.github/workflows/build_megaavr.yml'
push:
paths:
- 'src/**'
- '.github/workflows/build_megaavr.yml'
jobs:
megaavr-uno2018:
name: megaavr ${{ matrix.sketches.name }}
runs-on: ubuntu-latest
strategy:
matrix:
sketches:
- name: serial
- name: ethernet
- name: wifi
board:
- fqbn: arduino:megaavr:uno2018
denko-target: mega
platforms: |
- name: arduino:megaavr
libraries: |
- name: Servo
- name: IRremote
version: 4.1.2
- name: Ethernet
- name: WiFiNINA
- name: Adafruit NeoPixel
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Generate
id: generate
run: echo "path=$(./bin/denko sketch ${{ matrix.sketches.name }} --target ${{ matrix.board.denko-target }})" >> $GITHUB_OUTPUT
- name: Compile Arduino Sketches
uses: arduino/[email protected]
with:
platforms: ${{ matrix.board.platforms }}
fqbn: ${{ matrix.board.fqbn }}
libraries: ${{ matrix.board.libraries }}
sketch-paths: |
- ${{ steps.generate.outputs.path }}