Skip to content

Commit 706a2b5

Browse files
authored
Merge pull request #296 from LeeNX/leet-ci-updates
chore(ci): updates to add ```Sketches report size delta``` to PR workflows
2 parents 29f73d9 + dc82bd7 commit 706a2b5

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ name: Compile Sketches
1010
- "ci-builds-*"
1111
pull_request:
1212
workflow_dispatch:
13+
merge_group:
14+
schedule:
15+
- cron: "30 1 1 * *" # Scheduled build test 01h30 1st of Month
1316

1417
concurrency:
1518
# https://docs.github.com/en/actions/examples/using-concurrency-expressions-and-a-test-matrix
@@ -22,15 +25,24 @@ jobs:
2225
compile-sketches:
2326
runs-on: ubuntu-latest
2427

28+
permissions:
29+
contents: read # needed to fetch base commit
30+
pull-requests: write # needed to post the delta report
31+
checks: write # (optional) if using Checks API instead of PR comment
32+
2533
steps:
2634
- name: Checkout repository
2735
uses: actions/checkout@v6
36+
with:
37+
fetch-depth: 0 # required for comparing base vs. head commits
2838

2939
# See: https://github.com/arduino/compile-sketches#readme
3040
- name: Compile sketches
3141
uses: arduino/compile-sketches@v1
3242
with:
43+
enable-deltas-report: true
3344
fqbn: esp32:esp32:esp32
45+
github-token: ${{ secrets.GITHUB_TOKEN }}
3446
sketch-paths: |
3547
- examples/CharacteristicsConfiguration/CharacteristicsConfiguration.ino
3648
- examples/DrivingControllerTest/DrivingControllerTest.ino
@@ -56,3 +68,12 @@ jobs:
5668
- name: Keypad
5769
- name: Bounce2
5870
- source-path: .
71+
72+
- name: Sketches report size delta
73+
# Only run the action when the workflow is triggered by a pull request.
74+
if: github.event_name == 'pull_request'
75+
continue-on-error: true
76+
uses: arduino/report-size-deltas@v1
77+
with:
78+
github-token: ${{ secrets.GITHUB_TOKEN }}
79+
comment-on-pr: true

.github/workflows/platformio.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
board: [esp32dev, lolin_c3_mini]
27+
board: [esp32dev, lolin_c3_mini, esp32s3]
2828

2929
steps:
3030
- name: Checkout code
@@ -44,4 +44,4 @@ jobs:
4444
run: |
4545
# pio run -d examples/TestAll/TestAll.ino -e ${{ matrix.board }} -D BLE_GAMEPAD_DEBUG=1 --verbose
4646
cd test/ci_build
47-
pio run -e ${{ matrix.board }} --verbose
47+
pio run -e ${{ matrix.board }}

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# ESP32-BLE-Gamepad
22

33
![Build](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/main.yml/badge.svg)
4-
![PlatformIO](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/main.yml/platform.svg)
4+
![PlatformIO](https://github.com/lemmingDev/ESP32-BLE-Gamepad/actions/workflows/platformio.yml/badge.svg)
55

6-
BLE Bluetooth HID GAMEPAD library for ESP32
6+
Bluetooth LE Gamepad library for the ESP32
77

88
## License
99
Published under the MIT license. Please see license.txt.
@@ -27,9 +27,10 @@ It would be great however if any improvements are fed back into this version.
2727
- [x] Configurable BLE characteristics (name, manufacturer, model number, software revision, serial number, firmware revision, hardware revision)
2828
- [x] Report optional battery level to host
2929
- [x] Uses efficient NimBLE bluetooth library
30-
- [x] Output report function
30+
- [x] HID Output Report function
31+
- [ ] HID Feature Report function
3132
- [x] Functions available for force pairing/ignore current client and/or delete pairings
32-
- [x] Nordic UART Service functionality at same time as gamepad. See examples
33+
- [x] Nordic UART Service (NUS) functionality at same time as gamepad. See examples
3334
- [x] Compatible with Windows
3435
- [x] Compatible with Android (Android OS maps default buttons / axes / hats slightly differently than Windows) (see notes)
3536
- [x] Compatible with Linux (limited testing)

test/ci_build/platformio.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,14 @@ lib_deps =
1919
../../
2020
build_flags =
2121
-D BLE_GAMEPAD_DEBUG=1
22+
23+
[env:esp32s3]
24+
platform = espressif32
25+
board = esp32-s3-devkitc-1
26+
framework = arduino
27+
lib_ldf_mode = deep+
28+
lib_deps =
29+
h2zero/NimBLE-Arduino
30+
../../
31+
build_flags =
32+
-D BLE_GAMEPAD_DEBUG=1

0 commit comments

Comments
 (0)