From 680d1901d5be44f035aed8417ef4c99723435bf6 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 5 Oct 2020 21:31:05 -0700 Subject: [PATCH] Add "smoke test" sketch compilation CI workflow On every push and pull request, compile relevant sketches for the Nano 33 BLE board. --- .github/workflows/compile-sketches.yml | 28 ++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/compile-sketches.yml diff --git a/.github/workflows/compile-sketches.yml b/.github/workflows/compile-sketches.yml new file mode 100644 index 0000000..2fe2626 --- /dev/null +++ b/.github/workflows/compile-sketches.yml @@ -0,0 +1,28 @@ +name: Compile Sketches + +on: + - push + - pull_request + +jobs: + compile-sketches: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # See: https://github.com/arduino/compile-sketches#readme + - name: Compile sketches + uses: arduino/compile-sketches@v1 + with: + fqbn: arduino:mbed:nano33ble + sketch-paths: | + - FruitToEmoji/sketches/object_color_capture + - GestureToEmoji/ArduinoSketches/HardwareTest + - GestureToEmoji/ArduinoSketches/IMU_Capture + - GestureToEmoji/ArduinoSketches/IMU_Classifier + libraries: | + - name: Arduino_TensorFlowLite + - name: Arduino_APDS9960 + - name: Arduino_LSM9DS1 diff --git a/README.md b/README.md index 015a58c..faa8335 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Machine Learning on Arduino ## Arduino TensorFlow Lite Tutorials +[![Compile Sketches status](https://github.com/arduino/ArduinoTensorFlowLiteTutorials/actions/workflows/compile-sketches.yml/badge.svg)](https://github.com/arduino/ArduinoTensorFlowLiteTutorials/actions/workflows/compile-sketches.yml) + This Github repo contains tutorials for using TensorFlow Lite on Arduino hardware. * [GestureToEmoji](GestureToEmoji/)