-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 1.08 KB
/
build.yml
File metadata and controls
39 lines (32 loc) · 1.08 KB
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
name: Build
# TODO: update if you want to allow from forked repositories
on: [pull_request]
env:
# TODO: Update the below variables for your project
APP_NAME: "Template"
IDF_TARGET: 'esp32'
IDF_VERSION: 'v5.5.1'
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
FLASH_TOTAL_OVERRIDE: '1500000' # number of bytes of total flash (for percentage calculations)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
# TODO: update this if you have submodules
- name: Build main
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ env.IDF_VERSION }}
path: "."
target: ${{ env.IDF_TARGET }}
- name: Determine Size Delta
uses: esp-cpp/esp-idf-size-delta@v1
with:
app_name: ${{ env.APP_NAME }}
app_path: "."
idf_target: ${{ env.IDF_TARGET }}
idf_version: ${{ env.IDF_VERSION }}
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}