Skip to content

Commit e62bb96

Browse files
committed
Mv ArduinoCore-API only if included inplatform
1 parent 6769704 commit e62bb96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/compile-examples.yml

+6
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,14 @@ jobs:
181181
repository: arduino/ArduinoCore-API
182182
path: extras/ArduinoCore-API
183183

184+
- name: Check if API should be compiled in the core
185+
id: checkapi
186+
run: |
187+
if [[ $(grep -r api platform.txt) ]]; then echo "::set-output name=IS_API::true"; fi
188+
184189
- name: Install ArduinoCore-API
185190
run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
191+
if: steps.checkapi.outputs.IS_API == 'true'
186192

187193
- name: Checkout Basic examples
188194
uses: actions/checkout@v2

0 commit comments

Comments
 (0)