Skip to content

Commit 4ecb599

Browse files
committed
test compile example now uses github's master core version, fixed comments
1 parent 88a4ce6 commit 4ecb599

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

.github/workflows/compile-examples.yml

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88

99
env:
10-
# sketch paths to compile (recursive) for all boards
10+
# sketch paths to compile (recursive) compatible with all boards
1111
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
1212

1313
strategy:
@@ -20,9 +20,8 @@ jobs:
2020
{"fqbn": "arduino-beta:mbed:envie_m7"}
2121
]
2222

23-
# make board type-specific customizations to the matrix jobs
23+
# compile only the examples compatible with each board
2424
include:
25-
# normal boards
2625
- board:
2726
fqbn: "arduino-beta:mbed:nano33ble"
2827
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
@@ -38,40 +37,36 @@ jobs:
3837
uses: actions/checkout@v2
3938

4039
# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
41-
#- name: Checkout ArduinoCore-API
42-
# uses: actions/checkout@v2
43-
#with:
44-
# repository: arduino/ArduinoCore-API
45-
# path: extras/ArduinoCore-API
40+
- name: Checkout ArduinoCore-API
41+
uses: actions/checkout@v2
42+
with:
43+
repository: arduino/ArduinoCore-API
44+
ref: namespace_arduino
45+
path: ArduinoCore-API
4646

47-
#- name: Install ArduinoCore-API
48-
# run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
47+
- name: Remove old symlink to api
48+
run: rm "$GITHUB_WORKSPACE/cores/arduino/api"
4949

50-
#- name: Checkout Adafruit WiFiNINA
51-
# uses: actions/checkout@v2
52-
# with:
53-
# repository: adafruit/WiFiNINA
54-
# path: adafruit/WiFiNINA
50+
- name: Install ArduinoCore-API
51+
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
5552

5653
- name: Compile examples
5754
uses: arduino/actions/libraries/compile-examples@master
5855
with:
5956
fqbn: ${{ matrix.board.fqbn }}
60-
# libraries: |
61-
# ${{ env.UNIVERSAL_LIBRARIES }}
6257
platforms: |
6358
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
6459
- name: "arduino-beta:mbed"
6560
# Overwrite the Board Manager installation with the local platform
66-
# - source-path: "./"
67-
# name: "arduino-beta:mbed"
61+
- source-path: "./"
62+
name: "arduino-beta:mbed"
6863
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
69-
# enable-size-deltas-report: 'true'
64+
enable-size-deltas-report: 'true'
7065
verbose: 'false'
7166

72-
# - name: Save memory usage change report as artifact
73-
# if: github.event_name == 'pull_request'
74-
# uses: actions/upload-artifact@v1
75-
# with:
76-
# name: 'size-deltas-reports'
77-
# path: 'size-deltas-reports'
67+
- name: Save memory usage change report as artifact
68+
if: github.event_name == 'pull_request'
69+
uses: actions/upload-artifact@v1
70+
with:
71+
name: 'size-deltas-reports'
72+
path: 'size-deltas-reports'

0 commit comments

Comments
 (0)