File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -44,3 +44,15 @@ More information about supported versions of ESP-IDF: https://docs.espressif.com
44
44
Type of ESP32 to build for. Default value ` esp32 ` .
45
45
46
46
The value must be one of the supported ESP-IDF targets as documented here: https://github.com/espressif/esp-idf#esp-idf-release-and-soc-compatibility
47
+
48
+ ### ` command `
49
+
50
+ Optional: Specify the command that will run as part of this GitHub build step.
51
+
52
+ Default: ` idf.py build `
53
+
54
+ Overriding this is useful for running other commands via github actions. Example:
55
+
56
+ ``` yaml
57
+ command : esptool.py merge_bin -o ../your_final_output.bin @flash_args
58
+ ` ` `
Original file line number Diff line number Diff line change 1
1
name : " Espressif IoT Development Framework (ESP-IDF)"
2
- description : " This action build your firmware for ESP32 directly in GitHub using Espressif ESP-IDF Docker image."
2
+ description : " This action builds your firmware for ESP32 directly in GitHub using Espressif ESP-IDF Docker image."
3
3
branding :
4
4
color : red
5
5
icon : wifi
@@ -16,11 +16,15 @@ inputs:
16
16
description : ' ESP32 variant to build for'
17
17
default : ' esp32'
18
18
required : false
19
+ command :
20
+ description : ' Command to run inside the docker container (default: builds the project)'
21
+ default : ' idf.py build'
22
+ required : false
19
23
20
24
runs :
21
25
using : " composite"
22
26
steps :
23
27
- run : |
24
28
export IDF_TARGET=$(echo "${{ inputs.target }}" | tr '[:upper:]' '[:lower:]' | tr -d '_-')
25
- docker run -t -e IDF_TARGET="${IDF_TARGET}" -v "${GITHUB_WORKSPACE}:/app" -w "/app/${{ inputs.path }}" espressif/idf:${{ inputs.esp_idf_version }} idf.py build
29
+ docker run -t -e IDF_TARGET="${IDF_TARGET}" -v "${GITHUB_WORKSPACE}:/app" -w "/app/${{ inputs.path }}" espressif/idf:${{ inputs.esp_idf_version }} ${{ inputs.command }}
26
30
shell: bash
You can’t perform that action at this time.
0 commit comments