Skip to content

GitHub Action to build your ESP32 firmware with ESP-IDF development framework v4.x

License

Notifications You must be signed in to change notification settings

CalinRadoni/esp-idf-v4-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

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP-IDF v4.x installer

GitHub Action to install Espressif IoT Development Framework v4.x for building ESP32 code.

Note: ESP-IDF v4.x build is faster to use as a GitHub Action for building ESP32 code. It uses Espressif's official Docker container skipping the whole installation part.

The usable ESP-IDF versions are:

  • latest (based on release/v4.2)
  • v4.2, v4.2.x, release/v4.2
  • v4.1, v4.1.x, release/v4.1
  • v4.0.x, release/v4.0

Note: The action is built for Ubuntu 20.04 LTS. It may or may not work with other Ubuntu or Debian versions.

Usage

Source the ESP-IDF required environment variables before building your code:

source ~/esp/esp-idf/export.sh
idf.py build

It is used at least in ESP32HAL repository.

Example

name: ESP32 Builder

on: [push]

jobs:
  builder:
    name: Builder for test ESP32 project
    runs-on: ubuntu-20.04

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Install ESP-IDF
        uses: CalinRadoni/esp-idf-v4-action@v2
        with:
          esp_idf_version: 'v4.1'

      - name: Build
        run: |
          source ~/esp/esp-idf/export.sh
          idf.py reconfigure
          idf.py app
          idf.py size

About

It was tested in the official Ubuntu Focal Docker container and it contains some minor extra steps not really needed for the GitHub-hosted Ubuntu 20.04 LTS runner, like the installation of tzdata and python3-libusb1. I left them for completeness if more tests are needed.

Version 2 of this action does not build the ESP32 code, like version 1 has done it, to allow custom build steps.

License

This repository is licensed with the MIT License.

About

GitHub Action to build your ESP32 firmware with ESP-IDF development framework v4.x

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages