Skip to content

Commit

Permalink
Push to esp-idf v5.3 build system
Browse files Browse the repository at this point in the history
  • Loading branch information
seeul8er committed Aug 2, 2024
1 parent 816800a commit 286ad6c
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 90 deletions.
6 changes: 6 additions & 0 deletions .github/actions/esp-idf-5_3-with-node/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM espressif/idf:release-v5.3
RUN apt update
RUN apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt -y install nodejs
22 changes: 22 additions & 0 deletions .github/actions/esp-idf-5_3-with-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Espressif IoT Development Framework (ESP-IDF), plus node.js and npm"
branding:
color: red
icon: wifi
inputs:
target:
description: "ESP32 variant to build for"
default: "esp32"
required: false
command:
description: "Command to run inside the docker container (default: builds the project)"
default: "idf.py build"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
IDF_TARGET: "${{inputs.target}}"
args:
- "/bin/bash"
- "-c"
- "${{inputs.command}}"
17 changes: 17 additions & 0 deletions .github/workflows/esp_idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,20 @@ jobs:
with:
target: "${{ matrix.target }}"
command: "idf.py set-target ${{matrix.target}} build"
build_esp32_v5_3:
runs-on: ubuntu-latest
strategy:
matrix:
target: ["esp32", "esp32s2", "esp32s3", "esp32c3", "esp32c6"]
fail-fast: false
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: 'recursive'
- name: ESP-IDF v5.3 build
uses: ./.github/actions/esp-idf-5_3-with-node
with:
target: "${{ matrix.target }}"
command: "idf.py set-target ${{matrix.target}} build"
Loading

0 comments on commit 286ad6c

Please sign in to comment.