forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (79 loc) · 2.54 KB
/
sizes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Sizes Test
# Comment
# The workflow will run labeled pull requests
on:
pull_request:
types: [opened, reopened, synchronize, labeled]
env:
# It's convenient to set variables for values used multiple times in the workflow
SKETCHES_REPORTS_PATH: sizes-report
SKETCHES_REPORTS_ARTIFACT_NAME: sizes-report
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
compile-sketch:
if: |
contains(github.event.pull_request.labels.*.name, 'sizes_test')
runs-on: ubuntu-latest
env:
REPOSITORY: |
- source-path: '.'
name: "espressif:esp32"
strategy:
matrix:
target:
- esp32
- esp32s2
- esp32c3
- esp32s3
- esp32c6
- esp32h2
include:
- target: esp32
fqbn: espressif:esp32:esp32:PartitionScheme=huge_app"
- target: esp32s2
fqbn: espressif:esp32:esp32s2:PartitionScheme=huge_app"
- target: esp32c3
fqbn: espressif:esp32:esp32c3:PartitionScheme=huge_app"
- target: esp32s3
fqbn: espressif:esp32:esp32s3:PartitionScheme=huge_app"
- target: esp32c6
fqbn: espressif:esp32:esp32c6:PartitionScheme=huge_app
- target: esp32h2
fqbn: espressif:esp32:esp32h2:PartitionScheme=huge_app"
steps:
# This step makes the contents of the repository available to the workflow
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile sketch
uses: P-R-O-C-H-Y/compile-sketches@sizes
with:
platforms: |
${{ env.REPOSITORY }}
target: ${{ matrix.target }}
fqbn: ${{ matrix.fqbn }}
# The path to the libraries folder
sketch-paths: |
- libraries/
use-json-file: false
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
enable-warnings-report: false
cli-compile-flags: |
- --warnings="all"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}-${{ matrix.target }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
event_file:
name: "Event File"
if: |
contains(github.event.pull_request.labels.*.name, 'sizes_test')
needs: compile-sketch
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{github.event_path}}