Skip to content

Commit 6601c44

Browse files
committed
feat: update actions
1 parent 03d677d commit 6601c44

File tree

5 files changed

+73
-221
lines changed

5 files changed

+73
-221
lines changed

.github/workflows/build_sdk_auto.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Auto Build SDK For All Targets
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
9+
jobs:
10+
run:
11+
name: Build ${{ github.ref_name }} SDK For all
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install dependencies
19+
run: bash ./tools/prepare-ci.sh
20+
21+
- name: Build
22+
shell: bash
23+
run: |
24+
echo "Building for all"
25+
bash ./build.sh -e -t all
26+
27+
- name: Upload archive
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: artifacts
31+
path: dist
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Manual Build SDK For the Specific Target
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
name:
7+
type: choice
8+
description: Choose Target
9+
default: 'all'
10+
options:
11+
- 'all'
12+
- 'esp32'
13+
- 'esp32s2'
14+
- 'esp32s3'
15+
- 'esp32c3'
16+
- 'esp32c6'
17+
- 'esp32h6'
18+
19+
jobs:
20+
run:
21+
name: Build ${{ github.ref_name }} SDK For ${{ github.event.inputs.name }}
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Install dependencies
29+
run: bash ./tools/prepare-ci.sh
30+
31+
- name: Build
32+
shell: bash
33+
run: |
34+
export TARGET_TYPE=${{ github.event.inputs.name }}
35+
echo "Building for $TARGET_TYPE"
36+
bash ./build.sh -e -t $TARGET_TYPE
37+
38+
- name: Upload archive
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: artifacts
42+
path: dist

.github/workflows/cron.yml

Lines changed: 0 additions & 138 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/repository_dispatch.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)