Skip to content

GitHub action to build ESP32 project using esp-idf

License

Notifications You must be signed in to change notification settings

rmshub/esp-idf-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

esp-idf-action

GitHub action to build ESP-IDF project using esp-idf framework. This action downloads the required ESP-IDF from espressif server and from github for latest branch. From v2 introduced cache esp-idf and its tools based on esp-idf version

The esp_idf_version as follows

Note: The action runs on ubuntu latest and python3 as default interpreter.

Example

# This is a esp idf workflow to build ESP32 based project

name: Build and Artifact the ESP-IDF Project

# Controls when the action will run. 
on:
  # Triggers the workflow on tag create like v1.0, v2.0.0 and so on
  push:
    tags:
     - 'v*'

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - name: Install ESP-IDF and Build project
        uses: rmshub/esp-idf-action@v6
        with: 
            esp_idf_version: v4.4.6
            esp_idf_target: esp32

      - name: Archive build output artifacts
        uses: actions/upload-artifact@v4
        with:
          name: build
          path: |
            build/bootloader/bootloader.bin
            build/partition_table/partition-table.bin
            build/${{ github.event.repository.name }}.bin

Test

Currently this action verified with esp-idf v4.4.6

License

This repository is licensed with the MIT License.

About

GitHub action to build ESP32 project using esp-idf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages