v0.18.1 #105
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
release: | |
types: [ created ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
esp-variant: | |
- esp32 | |
- esp32-s3 | |
- esp32-c3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: ESP-IDF Build | |
uses: espressif/[email protected] | |
with: | |
esp_idf_version: v5.2.1 | |
command: | | |
idf.py set-target ${{ matrix.esp-variant }} | |
idf.py image | |
- name: Upload Application Image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Application (${{ matrix.esp-variant }}) | |
path: build/ble2mqtt.bin | |
- name: Upload Filesystem Image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: File System (${{ matrix.esp-variant }}) | |
path: build/fs_0.bin | |
- name: Upload Full Flash Image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Full Flash Image (${{ matrix.esp-variant }}) | |
path: build/ble2mqtt-full.bin | |
- name: Upload Release | |
if: github.event_name == 'release' && github.event.action == 'created' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
mv build/ble2mqtt-full.bin ble2mqtt-full.${{ matrix.esp-variant }}.bin | |
mv build/ble2mqtt.bin ble2mqtt.${{ matrix.esp-variant }}.bin | |
gh release upload ${GITHUB_REF#refs/tags/} ble2mqtt-full.${{ matrix.esp-variant }}.bin | |
gh release upload ${GITHUB_REF#refs/tags/} ble2mqtt.${{ matrix.esp-variant }}.bin |