Skip to content

Commit c0f0b9d

Browse files
committed
Compile arduino example in CI
1 parent 9db3189 commit c0f0b9d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ jobs:
8585
with:
8686
files: ${{ github.workspace }}/build/coverage_xml.xml
8787

88+
build-arduino-example:
89+
runs-on: ubuntu-latest
90+
91+
steps:
92+
- uses: actions/checkout@v3
93+
94+
- name: Generate single header lib
95+
working-directory: ${{github.workspace}}/lib
96+
run: python3 build-shl.py
97+
98+
- name: Copy single header file to sketch dir
99+
run: cp ${{github.workspace}}/lib/shl/embedded_cli.h ${{github.workspace}}/examples/arduino-cli/embedded_cli.h
100+
101+
- name: Compile arduino sketch
102+
uses: arduino/compile-sketches@v1
103+
with:
104+
sketch-paths: |
105+
- examples/arduino-cli
106+
88107
build-win:
89108
strategy:
90109
fail-fast: false

examples/arduino-cli/arduino-cli.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Simple example of using embedded-cli in arduino.
3-
* To compile copy embedded-cli.h and embedded-cli.c to sketch directory.
3+
* To compile copy embedded-cli.h (single header version) to sketch directory.
44
*
55
* With specified settings:
66
* 32 bytes for cmd buffer, 16 for RX buffer,

0 commit comments

Comments
 (0)