-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.58 KB
/
arduino-compile-sketches.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
# Adapted from: https://github.com/marketplace/actions/compile-arduino-sketches
#
name: Arduino Compile Sketches
on:
workflow_call:
inputs:
message:
description: Message to display in job summary
required: false
type: string
fqbn:
required: true
type: string
platform-name:
required: true
type: string
platform-sourceurl:
required: true
type: string
platform-version:
required: true
type: string
libraries:
required: true
type: string
copyfile:
required: false
type: string
jobs:
compile-sketches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update PATH if using nektos/act locally
if: ${{ env.ACT }}
run: |
echo "/root/.local/bin" >> $GITHUB_PATH
- name: Copy file if necessary
if: ${{ inputs.copyfile }}
run: |
cp ${{ inputs.copyfile }}-template.h ${{ inputs.copyfile }}.h
- uses: arduino/compile-sketches@v1
with:
fqbn: ${{ inputs.fqbn }}
platforms: |
- name: ${{ inputs.platform-name }}
version: ${{ inputs.platform-version }}
source-url: ${{ inputs.platform-sourceurl }}
sketch-paths: |
- .
verbose: true
enable-warnings-report: true
libraries: ${{ inputs.libraries }}
- name: Print the job summary
if: ${{ inputs.message }}
run: |
echo ${{ inputs.message }} >$GITHUB_STEP_SUMMARY