Skip to content

Commit

Permalink
Fix compile-examples.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristidragomir97 committed Jun 3, 2024
1 parent 1a4e9dd commit 174fb98
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Source: https://github.com/per1234/.github/blob/main/workflow-templates/compile-examples-private.md
name: Compile Examples

# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
Expand Down Expand Up @@ -41,18 +42,17 @@ jobs:

matrix:
board:
- fqbn: arduino:renesas_portenta:portenta_c33
platforms: |
- name: arduino:renesas_portenta
artifact-name-suffix: arduino-renesas_portenta-portenta_c33
additional-sketch-paths: examples/Standby_WakeFromRTC_C33
- fqbn: arduino:mbed_portenta:envie_m7
platforms: |
- name: arduino:mbed_portenta
artifact-name-suffix: arduino-mbed_portenta-envie_m7
additional-sketch-paths: examples/Standby_WakeFromRTC_C33
- fqbn: arduino:renesas_portenta:portenta_c33
platforms: |
- name: arduino:renesas_portenta
artifact-name-suffix: arduino-renesas_portenta-portenta_c33
additional-sketch-paths: examples/Standby_WakeFromRTC_H7


steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -66,8 +66,7 @@ jobs:
libraries: |
# Install the library from the local path.
- source-path: ./
# - name: Arduino_PF1550
- source-url: https://github.com/arduino-libraries/Arduino_PF1550.git
- name: Arduino_PF1550
- source-url: https://github.com/arduino-libraries/Arduino_LowPowerPortentaC33.git
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
Expand All @@ -79,29 +78,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}

report-size-deltas:
needs: build
# Run even if some compilations failed.
if: always() && github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- name: Download sketches reports artifact
id: download-artifact
continue-on-error: true # If compilation failed for all boards then there are no artifacts
uses: actions/download-artifact@v4
with:
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Comment size deltas report to PR
uses: arduino/report-size-deltas@v1
# If actions/download-artifact failed, there are no artifacts to report from.
if: steps.download-artifact.outcome == 'success'
with:
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}

0 comments on commit 174fb98

Please sign in to comment.