Skip to content

Commit

Permalink
Merge pull request #252 from LeeNX/ci-build-leet
Browse files Browse the repository at this point in the history
chore(ci): add ci workflow that test builds example sketches
  • Loading branch information
lemmingDev authored Jan 7, 2025
2 parents 16b29ba + 35df7e5 commit a255104
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Compile Sketches

'on':
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]*"
branches:
- "master"
- "ci-builds-*"
pull_request:
workflow_dispatch:

permissions: {}

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: esp32:esp32:esp32
sketch-paths: |
# - examples/CharacteristicsConfiguration/CharacteristicsConfiguration.ino # disable because esp_base_mac_addr_set is disabled in BleCompositeHID.cpp
- examples/DrivingControllerTest/DrivingControllerTest.ino
- examples/Fightstick/Fightstick.ino
- examples/FlightControllerTest/FlightControllerTest.ino
- examples/Gamepad/Gamepad.ino
- examples/IndividualAxes/IndividualAxes.ino
- examples/Keypad4x4/Keypad4x4.ino
- examples/MultipleButtons/MultipleButtons.ino
- examples/MultipleButtonsAndHats/MultipleButtonsAndHats.ino
- examples/MultipleButtonsDebounce/MultipleButtonsDebounce.ino
- examples/PotAsAxis/PotAsAxis.ino
- examples/SetBatteryLevel/SetBatteryLevel.ino
- examples/SingleButton/SingleButton.ino
- examples/SingleButtonDebounce/SingleButtonDebounce.ino
- examples/SpecialButtons/SpecialButtons.ino
- examples/TestAll/TestAll.ino
- examples/TestReceivingOutputReport/TestReceivingOutputReport.ino
libraries: |
- name: NimBLE-Arduino
- name: Keypad
- name: Bounce2
- source-path: .

0 comments on commit a255104

Please sign in to comment.