Manual Build SDK For the Specific Target #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual Build SDK For the Specific Target | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
type: choice | |
description: Choose Target | |
default: 'all' | |
options: | |
- 'all' | |
- 'esp32' | |
- 'esp32s2' | |
- 'esp32s3' | |
- 'esp32c3' | |
- 'esp32c6' | |
- 'esp32h6' | |
jobs: | |
run: | |
name: Build ${{ github.ref_name }} SDK For ${{ github.event.inputs.name }} | |
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.name }} | |
echo "Building for $TARGET_TYPE" | |
bash ./build.sh -e -t $TARGET_TYPE | |
- name: Upload archive | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: dist |