Skip to content

Commit 42db954

Browse files
authored
Merge pull request #173 from per1234/update-action
Update GitHub Actions actions used in sketch compilation CI workflows
2 parents aa6dcf7 + fd83c56 commit 42db954

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

.github/workflows/compile-examples.yml

+29-10
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424

2525
env:
2626
# sketch paths to compile (recursive) compatible with all boards
27-
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
27+
UNIVERSAL_SKETCH_PATHS: |
28+
- libraries/Scheduler
29+
SKETCHES_REPORTS_PATH: sketches-reports
2830

2931
strategy:
3032
fail-fast: false
@@ -39,13 +41,27 @@ jobs:
3941
include:
4042
- board:
4143
fqbn: arduino:mbed:nano33ble
42-
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
44+
additional-sketch-paths: |
45+
- libraries/PDM
46+
- libraries/ThreadDebug
4347
- board:
4448
fqbn: arduino:mbed:envie_m4
45-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_Video"'
49+
additional-sketch-paths: |
50+
- libraries/doom
51+
- libraries/KernelDebug
52+
- libraries/Portenta_SDCARD
53+
- libraries/Portenta_Video
4654
- board:
4755
fqbn: arduino:mbed:envie_m7
48-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST" "libraries/WiFi"'
56+
additional-sketch-paths: |
57+
- libraries/doom
58+
- libraries/KernelDebug
59+
- libraries/Portenta_SDCARD
60+
- libraries/Portenta_System
61+
- libraries/Portenta_Video
62+
- libraries/ThreadDebug
63+
- libraries/USBHOST
64+
- libraries/WiFi
4965
5066
steps:
5167
- name: Checkout repository
@@ -62,7 +78,7 @@ jobs:
6278
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
6379

6480
- name: Compile examples
65-
uses: arduino/actions/libraries/compile-examples@master
81+
uses: arduino/compile-sketches@main
6682
with:
6783
github-token: ${{ secrets.GITHUB_TOKEN }}
6884
fqbn: ${{ matrix.board.fqbn }}
@@ -72,13 +88,16 @@ jobs:
7288
# Overwrite the Board Manager installation with the local platform
7389
- source-path: "./"
7490
name: "arduino:mbed"
75-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
91+
sketch-paths: |
92+
${{ env.UNIVERSAL_SKETCH_PATHS }}
93+
${{ matrix.additional-sketch-paths }}
7694
verbose: 'false'
77-
enable-size-deltas-report: true
95+
enable-deltas-report: true
96+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
7897

7998
- name: Save memory usage change report as artifact
8099
if: github.event_name == 'pull_request'
81-
uses: actions/upload-artifact@v1
100+
uses: actions/upload-artifact@v2
82101
with:
83-
name: size-deltas-reports
84-
path: size-deltas-reports
102+
path: ${{ env.SKETCHES_REPORTS_PATH }}
103+
name: ${{ env.SKETCHES_REPORTS_PATH }}

.github/workflows/report-size-deltas.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ jobs:
88

99
steps:
1010
- name: Comment size deltas reports to PRs
11-
uses: arduino/actions/libraries/report-size-deltas@master
11+
uses: arduino/report-size-deltas@main
12+
with:
13+
# The name of the workflow artifact created by the sketch compilation workflow
14+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)