11name : Compile Examples
22
3+ # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
34on :
45 pull_request :
56 paths :
1112 - .github/workflows/compile-examples.yml
1213 - examples/**
1314 - src/**
15+ schedule :
16+ # Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
17+ - cron : " 0 8 * * TUE"
18+ workflow_dispatch :
19+ repository_dispatch :
1420
1521jobs :
1622 build :
2329 - source-path: ./
2430 - name: ArduinoECCX08
2531 # sketch paths to compile (recursive) for all boards
26- UNIVERSAL_SKETCH_PATHS : ' "examples/SHA1" "examples/SHA256"'
32+ UNIVERSAL_SKETCH_PATHS : |
33+ - examples/SHA1
34+ - examples/SHA256
35+ SKETCHES_REPORTS_PATH : sketches-reports
2736
2837 strategy :
2938 fail-fast : false
@@ -44,33 +53,38 @@ jobs:
4453 type : wifi101
4554 libraries : |
4655 - name: WiFi101
47- sketch-paths : ' "examples/WiFiSSLClient"'
56+ sketch-paths : |
57+ - examples/WiFiSSLClient
4858 # GSM boards
4959 - board :
5060 type : gsm
5161 libraries : |
5262 - name: MKRGSM
53- sketch-paths : ' "examples/MKRGSMSSLClient"'
63+ sketch-paths : |
64+ - examples/MKRGSMSSLClient
5465
5566 steps :
5667 - name : Checkout
5768 uses : actions/checkout@v2
5869
5970 - name : Compile examples
60- uses : per1234/actions/libraries/ compile-examples@beaac5ae4bb7ab294f1305e436172fde4c281fc8
71+ uses : arduino/ compile-sketches@main
6172 with :
73+ github-token : ${{ secrets.GITHUB_TOKEN }}
6274 fqbn : ${{ matrix.board.fqbn }}
6375 libraries : |
6476 ${{ env.UNIVERSAL_LIBRARIES }}
6577 ${{ matrix.libraries }}
66- sketch-paths : ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}
67- size-report-sketch : SHA256
68- enable-size-deltas-report : true
78+ sketch-paths : |
79+ ${{ env.UNIVERSAL_SKETCH_PATHS }}
80+ ${{ matrix.sketch-paths }}
6981 verbose : true
82+ enable-deltas-report : true
83+ sketches-report-path : ${{ env.SKETCHES_REPORTS_PATH }}
7084
7185 - name : Save sketches report as artifact
7286 if : github.event_name == 'pull_request'
7387 uses : actions/upload-artifact@v2
7488 with :
75- name : size-deltas-reports
76- path : size-deltas-reports
89+ path : ${{ env.SKETCHES_REPORTS_PATH }}
90+ name : ${{ env.SKETCHES_REPORTS_PATH }}
0 commit comments