Skip to content

Commit 7663f87

Browse files
committed
feat(action): add log level
1 parent a438bc7 commit 7663f87

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/build_sdk_manual.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Manual Build SDK For the Specific Target
33
on:
44
workflow_dispatch:
55
inputs:
6-
name:
6+
target:
77
type: choice
88
description: Choose Target
99
default: 'all'
@@ -15,10 +15,22 @@ on:
1515
- 'esp32c3'
1616
- 'esp32c6'
1717
- 'esp32h6'
18+
log_level:
19+
type: choice
20+
description: Choose Log Level
21+
default: 'default'
22+
options:
23+
- 'default'
24+
- 'none'
25+
- 'verbose'
26+
- 'debug'
27+
- 'info'
28+
- 'warning'
29+
- 'error'
1830

1931
jobs:
2032
run:
21-
name: Build ${{ github.ref_name }} SDK For ${{ github.event.inputs.name }}
33+
name: Build ${{ github.ref_name }} SDK For ${{ github.event.inputs.target }}
2234

2335
runs-on: ubuntu-latest
2436

@@ -31,9 +43,10 @@ jobs:
3143
- name: Build
3244
shell: bash
3345
run: |
34-
export TARGET_TYPE=${{ github.event.inputs.name }}
35-
echo "Building for $TARGET_TYPE"
36-
bash ./build.sh -e -t $TARGET_TYPE
46+
export TARGET_TYPE=${{ github.event.inputs.target }}
47+
export LOG_LEVEL=${{ github.event.inputs.log_level }}
48+
echo "Building for $TARGET_TYPE (log_level: $LOG_LEVEL)"
49+
bash ./build.sh -e -t $TARGET_TYPE -D $LOG_LEVEL
3750
3851
- name: Upload archive
3952
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)