Skip to content

chore: doc & favicon #5

chore: doc & favicon

chore: doc & favicon #5

Workflow file for this run

name: ESP-IDF Build
on:
push:
branches: [main]
tags: ["*"]
permissions:
contents: write
issues: write
pull-requests: write
env:
IDF_PATH: "/opt/esp/idf"
IDF_TOOLS_PATH: "/opt/esp"
jobs:
build:
name: Build ESP32
runs-on: ubuntu-latest
container:
image: espressif/idf:release-v5.4
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache@v4
with:
path: |
~/.espressif
build/
.idf_cache/
key: esp-idf-cache-${{ runner.os }}
- name: Set up ESP-IDF
run: |
source $IDF_PATH/export.sh
idf.py reconfigure
- name: Build firmware
run: |
source $IDF_PATH/export.sh
idf.py build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: firmware
path: |
build/*.elf
build/*.bin
build/*.map
package:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: firmware
path: build/
- name: Install semantic-release and plugins
run: npm install -g semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release