fix: set component name to double-reset #55
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: Build | |
on: | |
push: | |
branches: [ "main" ] | |
tags: [ "v*" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
env: | |
COMPONENT_NAME: double-reset | |
IDF_COMPONENT_MANAGER: "1" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# ESP-IDF versions and targets | |
idf_ver: [ v4.4, v5.1, v5.2 ] | |
idf_target: [ esp32, esp32s2, esp32s3, esp32c3, esp32h2 ] | |
# Filter out unsupported combinations | |
exclude: | |
- { idf_target: esp32h2, idf_ver: v4.4 } | |
container: espressif/idf:release-${{ matrix.idf_ver }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Build | |
env: | |
IDF_TARGET: ${{ matrix.idf_target }} | |
working-directory: example | |
run: | | |
. ${IDF_PATH}/export.sh | |
idf.py build | |
platformio: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install platformio | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade platformio | |
- name: Setup Component Manager | |
run: | | |
pip install --upgrade idf-component-manager | |
- name: Build | |
run: platformio run -d example | |
build-all: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- platformio | |
# Only aggregating job | |
steps: | |
- run: echo OK | |
upload: | |
runs-on: ubuntu-latest | |
environment: release | |
if: github.ref_type == 'tag' | |
needs: | |
- build-all | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Upload component to component registry | |
uses: espressif/upload-components-ci-action@v1 | |
with: | |
name: ${{ env.COMPONENT_NAME }} | |
version: ${{ github.ref_name }} | |
namespace: ${{ github.repository_owner }} | |
api_token: ${{ secrets.ESP_IDF_COMPONENT_API_TOKEN }} |