-
Notifications
You must be signed in to change notification settings - Fork 0
Added sketch compile workflow #7
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 all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f930d2b
Added sketch compile workflow
cmaglie 2fedd06
Temporarily disable delta reports
cmaglie 98bf0a9
Simplify job
cmaglie 833e5a1
Update .github/workflows/compile-examples.yml
cmaglie 0176a4d
Removed useless 'type' tags in the matrix configuration
cmaglie d722945
Added read permissions
cmaglie 321e8f7
Removed example
cmaglie 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,91 @@ | ||
| name: Compile Examples | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - ".github/workflows/compile-examples.yml" | ||
| - "library.properties" | ||
| - "examples/**" | ||
| - "src/**" | ||
| push: | ||
| paths: | ||
| - ".github/workflows/compile-examples.yml" | ||
| - "library.properties" | ||
| - "examples/**" | ||
| - "src/**" | ||
| schedule: | ||
| # Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms). | ||
| - cron: "0 8 * * TUE" | ||
| workflow_dispatch: | ||
| repository_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: ${{ matrix.board.fqbn }} | ||
| runs-on: ubuntu-latest | ||
| permissions: { | ||
| contents: read | ||
| } | ||
|
|
||
| env: | ||
| LIBRARIES: | | ||
| # Install the NetworkConfigurator library from the repository | ||
| - source-path: ./ | ||
| - name: ArxContainer | ||
| - name: ArxTypeTraits | ||
| - name: DebugLog | ||
| SKETCH_PATHS: | | ||
| - examples/decoder_example | ||
| - examples/dispatcher_example | ||
| - examples/rpc_lite_client | ||
| - examples/rpc_lite_server | ||
| - examples/simple_client | ||
| - examples/unpacker_test | ||
| - examples/wrapper_example | ||
| SKETCHES_REPORTS_PATH: sketches-reports | ||
| strategy: | ||
| fail-fast: false | ||
|
|
||
| matrix: | ||
| board: | ||
| - fqbn: arduino:samd:mkrwifi1010 | ||
| artifact-name-suffix: arduino-samd-mkrwifi1010 | ||
| - fqbn: arduino:samd:nano_33_iot | ||
| artifact-name-suffix: arduino-samd-nano_33_iot | ||
| - fqbn: arduino:mbed_portenta:envie_m7 | ||
| artifact-name-suffix: arduino-mbed_portenta-envie_m7 | ||
| - fqbn: arduino:mbed_nano:nanorp2040connect | ||
| artifact-name-suffix: arduino-mbed_nano-nanorp2040connect | ||
| - fqbn: arduino:mbed_nicla:nicla_vision | ||
| artifact-name-suffix: arduino-mbed_nicla-nicla_vision | ||
| - fqbn: arduino:mbed_opta:opta | ||
| artifact-name-suffix: arduino-mbed_opta-opta | ||
| - fqbn: arduino:mbed_giga:giga | ||
| artifact-name-suffix: arduino-mbed_giga-giga | ||
| - fqbn: arduino:renesas_portenta:portenta_c33 | ||
| artifact-name-suffix: arduino-renesas_portenta-portenta_c33 | ||
| - fqbn: arduino:renesas_uno:unor4wifi | ||
| artifact-name-suffix: arduino-renesas_uno-unor4wifi | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Compile examples | ||
| uses: arduino/compile-sketches@v1 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| platforms: ${{ matrix.platforms }} | ||
| fqbn: ${{ matrix.board.fqbn }} | ||
| libraries: ${{ env.LIBRARIES }} | ||
| sketch-paths: ${{ env.SKETCH_PATHS }} | ||
| #enable-deltas-report: 'true' | ||
| sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | ||
|
|
||
| - name: Save memory usage change report as artifact | ||
| if: github.event_name == 'pull_request' | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| if-no-files-found: error | ||
| name: sketches-report-${{ matrix.board.artifact-name-suffix }} | ||
| path: ${{ env.SKETCHES_REPORTS_PATH }} | ||
Oops, something went wrong.
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.