Skip to content

Remove unnecessary steps from "Compile Examples" CI workflow #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,37 +46,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'

- name: Install nrfutil
run: pip3 install adafruit-nrfutil

# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
- name: Checkout ArduinoCore-API
uses: actions/checkout@v2
with:
repository: arduino/ArduinoCore-API
path: ArduinoCore-API

- name: Remove old symlink to api
run: rm -rf "$GITHUB_WORKSPACE/cores/arduino/api"

- name: Install ArduinoCore-API
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"

- name: Compile examples
uses: arduino/actions/libraries/compile-examples@master
with:
fqbn: ${{ matrix.board.fqbn }}
platforms: |
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
- source-url: "https://electroniccats.github.io/Arduino_Boards_Index/package_electroniccats_index.json"
name: "electroniccats:mbed"
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
- name: "electroniccats:mbed"
# Overwrite the Board Manager installation with the local platform
- source-path: "./"
name: "electroniccats:mbed"
Expand Down