Skip to content

Commit d9d7b3a

Browse files
committed
add missing env to package main
1 parent f7d64cf commit d9d7b3a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/package_main.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@ on:
77
types: [published]
88
workflow_dispatch:
99

10+
env:
11+
# TODO: Update the below variables for your project
12+
APP_NAME: "Template"
13+
IDF_TARGET: 'esp32'
14+
IDF_VERSION: 'v5.5'
15+
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
16+
FLASH_TOTAL_OVERRIDE: '1500000' # number of bytes of total flash (for percentage calculations)
17+
1018
jobs:
1119
build:
1220

1321
runs-on: ubuntu-latest
1422
continue-on-error: false
1523

24+
permissions:
25+
contents: write
26+
1627
outputs:
1728
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }}
1829

@@ -25,11 +36,9 @@ jobs:
2536
- name: Build Main Code
2637
uses: espressif/esp-idf-ci-action@v1
2738
with:
28-
esp_idf_version: release-v5.5
39+
esp_idf_version: ${{ env.IDF_VERSION }}
2940
path: '.'
30-
command: 'idf.py build'
31-
# TODO: set the target here to be the chip you are building for
32-
# target: esp32s3
41+
target: ${{ env.IDF_TARGET }}
3342

3443
- name: Upload Build Outputs
3544
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)