forked from espressif/esp32-arduino-lib-builder
-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (48 loc) · 1.24 KB
/
build_sdk_manual_v3.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
name: Manual Build SDK (v3) For the Specific Target
on:
workflow_dispatch:
inputs:
target:
type: choice
description: Choose Target
default: 'all'
options:
- 'all'
- 'esp32'
- 'esp32s2'
- 'esp32s3'
- 'esp32c3'
- 'esp32c6'
- 'esp32h6'
log_level:
type: choice
description: Choose Log Level
default: 'default'
options:
- 'default'
- 'none'
- 'verbose'
- 'debug'
- 'info'
- 'warning'
- 'error'
jobs:
run:
name: Build ${{ github.ref_name }} SDK (v3) For ${{ github.event.inputs.target }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: bash ./tools/prepare-ci.sh
- name: Build
shell: bash
run: |
export TARGET_TYPE=${{ github.event.inputs.target }}
export LOG_LEVEL=${{ github.event.inputs.log_level }}
echo "Building for $TARGET_TYPE (log_level: $LOG_LEVEL)"
bash ./build.sh -e -t $TARGET_TYPE -D $LOG_LEVEL
- name: Upload archive
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist