Skip to content

Commit d7c7f8e

Browse files
authored
CI: Only compile examples/Interrupts_subclassing when Wire1 is available. (#14)
1 parent 185399c commit d7c7f8e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/compile-examples.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
env:
20+
UNIVERSAL_SKETCH_PATHS: |
21+
- examples/SimpleAccelerometer
22+
- examples/SimpleGyroscope
23+
- examples/SimpleMagnetometer
2024
SKETCHES_REPORTS_PATH: sketches-reports
2125

2226
strategy:
@@ -54,12 +58,18 @@ jobs:
5458
- fqbn: arduino:mbed_portenta:envie_m7
5559
platforms: |
5660
- name: arduino:mbed_portenta
61+
sketch-paths: |
62+
- examples/Interrupts_subclassing
5763
- fqbn: arduino:mbed_portenta:envie_m4
5864
platforms: |
5965
- name: arduino:mbed_portenta
66+
sketch-paths: |
67+
- examples/Interrupts_subclassing
6068
- fqbn: arduino:mbed_nano:nano33ble
6169
platforms: |
6270
- name: arduino:mbed_nano
71+
sketch-paths: |
72+
- examples/Interrupts_subclassing
6373
- fqbn: arduino:mbed_nano:nanorp2040connect
6474
platforms: |
6575
- name: arduino:mbed_nano
@@ -74,7 +84,6 @@ jobs:
7484
platforms: |
7585
- name: rp2040:rp2040
7686
source-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
77-
7887
steps:
7988
- name: Checkout
8089
uses: actions/checkout@v3
@@ -91,6 +100,10 @@ jobs:
91100
enable-deltas-report: true
92101
github-token: ${{ secrets.GITHUB_TOKEN }}
93102
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
103+
sketch-paths: |
104+
${{ env.UNIVERSAL_SKETCH_PATHS }}
105+
${{ matrix.sketch-paths }}
106+
94107
95108
- name: Save memory usage change report as artifact
96109
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)