Skip to content

Commit 0986425

Browse files
committed
Fixes workflow
1 parent 8a317e2 commit 0986425

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/arduino-esp-v2-build-check.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ jobs:
123123
chmod +x $HOME/.local/bin/yq
124124
echo "$HOME/.local/bin" >> $GITHUB_PATH
125125
126-
- name: Compile examples
126+
- name: Compile examples (self-hosted)
127+
if: github.event.repository.private
127128
uses: arduino/compile-sketches@v1
128129
with:
129130
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
@@ -143,3 +144,22 @@ jobs:
143144
cli-compile-flags: |
144145
- --build-property
145146
- build.extra_flags=${{ matrix.build-properties }}
147+
148+
- name: Compile examples (public)
149+
if: ${{ !github.event.repository.private }}
150+
uses: arduino/compile-sketches@v1
151+
with:
152+
fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }}
153+
platforms: |
154+
- name: ${{ matrix.platform }}:${{ matrix.archi }}
155+
source-url: ${{ matrix.platform-url }}
156+
version: ${{ matrix.platform-version }}
157+
libraries: |
158+
- name: M5Unified
159+
- name: M5UnitUnified
160+
- source-path: ./
161+
sketch-paths: |
162+
- examples/UnitUnified/${{ matrix.sketch }}
163+
cli-compile-flags: |
164+
- --build-property
165+
- build.extra_flags=${{ matrix.build-properties }}

0 commit comments

Comments
 (0)