Skip to content

Commit

Permalink
Mv ArduinoCore-API only if included inplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
giulcioffi committed Nov 25, 2020
1 parent 6769704 commit e62bb96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,14 @@ jobs:
repository: arduino/ArduinoCore-API
path: extras/ArduinoCore-API

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

- name: Checkout Basic examples
uses: actions/checkout@v2
Expand Down

0 comments on commit e62bb96

Please sign in to comment.