-
-
Notifications
You must be signed in to change notification settings - Fork 729
Add CI workflows (to be used with ArduinoCore-API integration) #567
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
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cc557a4
Add compile example for CI
giulcioffi 2691b30
Use branch namespaced_api_Hardware of ArduinoCore-API
giulcioffi 64f2aee
Disable size-delta-report and use arduino path for compile example step
giulcioffi 3139e35
Use official branch of ArduinoCore-API
giulcioffi f7c8d00
Add MKRGSM, MKRNB, MKRWAN, WiFi101
giulcioffi e9e9e8b
Compile all the libraries + WiFi101 from namespaced_api branch
giulcioffi 1a6ef45
Install ArduinoIoTCloud + dependencies from the repository instead of…
giulcioffi 7d18af8
Install Arduino_ConnectionHandler from the repository instead of Boar…
giulcioffi 0ed98c2
Compile LoRa library
giulcioffi 4f861fd
Remove intallation of libraries which are dependencies of ArduinoIoTC…
giulcioffi c3f8a97
Compile only when a relevant file is modified
giulcioffi c8693a3
Remove examples from extras and add step to download them
giulcioffi 0bff8ae
Use list mode for sketches
giulcioffi 00dca72
Remove universal libraries entry
giulcioffi f2dd55a
Remove WiFiNINA step and compile its examples
giulcioffi 2990e4c
Assign a unique type to mkrwifi1010, nano33IoT, mkrwan1310 and mkrNB1500
giulcioffi 6db378e
Remove comments
giulcioffi d7d471b
Add report-size-delta action + step to upload artifact
giulcioffi 01f3e74
Update names and paths for compile-sketches and report-size-deltas ac…
giulcioffi b47b2af
Add VidorPeripherals to tesk sketches for MKR Vidor
giulcioffi da63a92
Use master branch of library WiFi101
giulcioffi dbf2e79
Use new mkrgsm1400-sketch-paths for MKR GSM1400
giulcioffi 857c994
Update inputs for upload-artifact entries
giulcioffi 0dc7e00
Add WAN attribute to compile also examples from MKRWAN library for MK…
giulcioffi fb59c13
Remove redundant matrix entry for MKRNB1500
giulcioffi 50d5867
Use release version of Keyboard library
giulcioffi 6769704
Fix wrong core name in a comment
giulcioffi e62bb96
Mv ArduinoCore-API only if included inplatform
giulcioffi 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
Add MKRGSM, MKRNB, MKRWAN, WiFi101
- Loading branch information
commit f7c8d00b13b58ad653eeac3ab99d136aa9c6e7a4
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 | ||||
---|---|---|---|---|---|---|
|
@@ -67,6 +67,22 @@ jobs: | |||||
- board: | ||||||
type: "tian" | ||||||
additional-sketch-paths: '"~/Arduino/libraries/Firmata/examples/StandardFirmataPlus" "~/Arduino/libraries/Firmata/examples/StandardFirmataEthernet" "~/Arduino/libraries/Firmata/examples/StandardFirmata" "~/Arduino/libraries/Firmata/examples/SimpleDigitalFirmata" "~/Arduino/libraries/Firmata/examples/SimpleAnalogFirmata" "~/Arduino/libraries/Firmata/examples/ServoFirmata" "~/Arduino/libraries/Firmata/examples/EchoString" "~/Arduino/libraries/Firmata/examples/AnalogFirmata" "~/Arduino/libraries/Firmata/examples/AllInputsFirmata"' | ||||||
# MKRGSM1400 board | ||||||
- board: | ||||||
fqbn: "arduino:samd:mkrgsm1400" | ||||||
additional-sketch-paths: "~/Arduino/libraries/MKRGSM/examples" | ||||||
# MKRNB1500 board | ||||||
- board: | ||||||
fqbn: "arduino:samd:mkrnb1500" | ||||||
additional-sketch-paths: "~/Arduino/libraries/MKRNB/examples" | ||||||
# MKRWAN board | ||||||
- board: | ||||||
fqbn: '"arduino:samd:mkrwan1300" "arduino:samd:mkrwan1310"' | ||||||
additional-sketch-paths: "~/Arduino/libraries/MKRWAN/examples" | ||||||
# WiFi101 | ||||||
- board: | ||||||
type: "usb" | ||||||
additional-sketch-paths: "~/Arduino/libraries/WiFi101/examples" | ||||||
|
||||||
steps: | ||||||
- name: Checkout repository | ||||||
|
@@ -135,6 +151,10 @@ jobs: | |||||
- name: Temboo | ||||||
- name: ArduinoIoTCloud | ||||||
- name: Madgwick | ||||||
- name: MKRGSM | ||||||
- name: MKRNB | ||||||
- name: MKRWAN | ||||||
- name: WiFi101 | ||||||
platforms: | | ||||||
# Use Board Manager to install the latest release of Arduino megaAVR Boards to get the toolchain | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
- name: "arduino:samd" | ||||||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since none of the existing matrix items match the
matrix.include
filter, this creates a new matrix element.https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations
You can see the
fqbn: '"arduino:samd:mkrwan1300" "arduino:samd:mkrwan1310"'
job here;https://github.com/giulcioffi/ArduinoCore-samd/runs/1263161214
and the jobs for the
fqbn: arduino:samd:mkrwan1300
andfqbn: arduino:samd:mkrwan1310
matrix elements:https://github.com/giulcioffi/ArduinoCore-samd/runs/1263161020
https://github.com/giulcioffi/ArduinoCore-samd/runs/1263161034
Apparently the
arduino/compile-sketches
action accepts the inputfqbn: "arduino:samd:mkrwan1300" "arduino:samd:mkrwan1310"
and ends up just compiling only for the MKR WAN 1300.You could add a general "WAN" attribute property to the matrix, something like what I did in this workflow:
https://github.com/arduino/arduino-examples/blob/main/.github/workflows/compile-examples.yml
The only problem is that, as you see here, when no matrix element matches the filter, one is created, which is why I had to define those properties for all the boards in the matrix, rather than only for the boards the property applied to.
You could also just add a separate
matrix.include
filter for each of the MKR WAN boardsboard.fqbn
values.This also has the same issue as I described above for
arduino:samd:mkrgsm1400
of overwriting the previous value ofadditional-sketch-paths
forarduino:samd:mkrwan1300
.