Skip to content

Commit

Permalink
Compile arduino example in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
funbiscuit committed Jul 12, 2023
1 parent 9db3189 commit c0f0b9d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,25 @@ jobs:
with:
files: ${{ github.workspace }}/build/coverage_xml.xml

build-arduino-example:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Generate single header lib
working-directory: ${{github.workspace}}/lib
run: python3 build-shl.py

- name: Copy single header file to sketch dir
run: cp ${{github.workspace}}/lib/shl/embedded_cli.h ${{github.workspace}}/examples/arduino-cli/embedded_cli.h

- name: Compile arduino sketch
uses: arduino/compile-sketches@v1
with:
sketch-paths: |
- examples/arduino-cli
build-win:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion examples/arduino-cli/arduino-cli.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Simple example of using embedded-cli in arduino.
* To compile copy embedded-cli.h and embedded-cli.c to sketch directory.
* To compile copy embedded-cli.h (single header version) to sketch directory.
*
* With specified settings:
* 32 bytes for cmd buffer, 16 for RX buffer,
Expand Down

0 comments on commit c0f0b9d

Please sign in to comment.