-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (69 loc) · 2.07 KB
/
Copy pathfirmware-faces-build.yml
File metadata and controls
79 lines (69 loc) · 2.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build(Faces firmware)
env:
SKETCH_NAMES_FIND_START: ./examples/firmware
REQUIRED_LIBRARIES:
on:
push:
tags-ignore:
- '*.*.*'
- 'v*.*.*'
branches:
- '*'
paths:
- 'examples/firmware/FacesQWERTY_firmware/**.ino'
- '.github/workflows/firmware-faces-build.yml'
pull_request:
paths:
- 'examples/firmware/FacesQWERTY_firmware/**.ino'
- '.github/workflows/firmware-faces-build.yml'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.sketch }}:${{matrix.board}}@${{matrix.platform-version}}
runs-on: ubuntu-latest
timeout-minutes: 12
strategy:
fail-fast: false
max-parallel: 20
matrix:
platform-url:
- https://downloads.arduino.cc/packages/package_index.json
platform-version:
- 1.8.6
sketch:
- FacesQWERTY_firmware
board:
- pro
platform:
- arduino
archi:
- avr
cpu:
- 8MHzatmega328
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set build properties
id: set_build_properties
run: |
if [[ "${{ matrix.cpu }}" == "8MHzatmega328" ]]; then
echo 'BUILD_PROPERTIES={ "All": "-UF_CPU -DF_CPU=8000000L" }' >> $GITHUB_ENV
fi
# Build
- name: Compile examples
uses: ArminJo/arduino-test-compile@master
with:
arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }}
platform-url: ${{ matrix.platform-url }}
required-libraries: ${{ env.REQUIRED_LIBRARIES }}
extra-arduino-cli-args: ${{ matrix.cli-args }}
build-properties: ${{ env.BUILD_PROPERTIES }}
sketch-names: ${{ matrix.sketch }}.ino
sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}