-
Notifications
You must be signed in to change notification settings - Fork 4
Add CI workflow #13
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
Add CI workflow #13
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
68df97b
Add initial workflow files
giulcioffi a6f7902
Use arduino_threads cli version
giulcioffi 874e750
Specify correct platform
giulcioffi fa2f19c
Modify Leds example to use latest library version
giulcioffi ef1d8ad
Add needed libraries
giulcioffi 7ed2975
Use action for libraries
giulcioffi 1d12143
Adjust i2c_concurrent example to latest library version
giulcioffi a566515
Use arduino-beta platform entry + minor fixes
giulcioffi 73bb57a
Call start() method instead of old begin() for threads
giulcioffi 087e910
Add OneWire library
giulcioffi cdc7b11
Remove envie_m4 target and not needed comments
giulcioffi 72a3dac
Add 'Save memory usage change report as artifact' step
giulcioffi f95357d
Use arduino/compile-sketches@main action
giulcioffi aeb1ad8
Use upload-artifact@v2
giulcioffi 6343236
Fix for better readability
giulcioffi ac0bb10
Update .github/workflows/compile-examples.yml
facchinm 69749d3
Update .github/workflows/compile-examples.yml
facchinm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: Compile Examples | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/compile-examples.yml" | ||
- "examples/**" | ||
- "src/**" | ||
push: | ||
paths: | ||
- ".github/workflows/compile-examples.yml" | ||
- "examples/**" | ||
- "src/**" | ||
|
||
jobs: | ||
compile-test: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
# libraries to install for all boards | ||
UNIVERSAL_LIBRARIES: | | ||
# Install the ArduinoThreads library from the repository | ||
- source-path: ./ | ||
- name: Arduino_LSM9DS1 | ||
- name: Arduino_APDS9960 | ||
- name: ArduinoECCX08 | ||
- name: Arduino_HTS221 | ||
- name: OneWire | ||
# sketch paths to compile (recursive) for all boards | ||
UNIVERSAL_SKETCH_PATHS: | | ||
- examples | ||
ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed | ||
ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
fqbn: | ||
- "arduino:mbed:nano33ble" | ||
# - "arduino:mbed:envie_m4" | ||
- "arduino:mbed:envie_m7" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# it's necessary to checkout the platform before installing it so that the ArduinoCore-API dependency can be added | ||
- name: Checkout ArduinoCore-mbed | ||
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: arduino/ArduinoCore-mbed | ||
# the arduino/actions/libraries/compile-examples action will install the platform from this path | ||
path: ${{ env.ARDUINOCORE_MBED_STAGING_PATH }} | ||
|
||
- name: Remove ArduinoCore-API symlink from Arduino mbed-Enabled Boards platform | ||
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used | ||
run: rm "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino/api" | ||
|
||
- name: Checkout ArduinoCore-API | ||
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: arduino/ArduinoCore-API | ||
# as specified at https://github.com/arduino/ArduinoCore-mbed/blob/master/README.md#installation | ||
path: ${{ env.ARDUINOCORE_API_STAGING_PATH }} | ||
|
||
- name: Install ArduinoCore-API | ||
# this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used | ||
run: | | ||
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" | ||
|
||
- name: Compile examples | ||
uses: arduino/compile-sketches@main | ||
with: | ||
cli-version: 'arduino_threads' | ||
fqbn: ${{ matrix.fqbn }} | ||
libraries: | | ||
${{ env.UNIVERSAL_LIBRARIES }} | ||
platforms: | | ||
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain | ||
- name: "arduino:mbed" | ||
# Overwrite the Board Manager installation with the local platform | ||
- source-path: "extras/ArduinoCore-mbed" | ||
name: "arduino:mbed" | ||
sketch-paths: | | ||
${{ env.UNIVERSAL_SKETCH_PATHS }} | ||
enable-deltas-report: 'true' | ||
verbose: 'true' | ||
|
||
- name: Save memory usage change report as artifact | ||
if: github.event_name == 'pull_request' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: 'size-deltas-reports' | ||
path: 'size-deltas-reports' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Report PR Size Deltas | ||
|
||
on: | ||
schedule: | ||
- cron: '*/5 * * * *' | ||
|
||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Comment size deltas reports to PRs | ||
uses: arduino/report-size-deltas@main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.