Skip to content

Commit

Permalink
Added action to build nightly release with artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
seeul8er committed Jan 1, 2025
1 parent d856077 commit e5446e0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM espressif/idf:release-v5.2
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ 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"
default: "./create_release_zip.sh"
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
IDF_TARGET: "${{inputs.target}}"
args:
- "/bin/bash"
- "-c"
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/esp-idf-with-node/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions .github/actions/esp-idf-with-node/action.yml

This file was deleted.

40 changes: 11 additions & 29 deletions .github/workflows/esp_idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,7 @@ on:
branches: [ master ]

jobs:
build_esp32_v5_1:
runs-on: ubuntu-latest
strategy:
matrix:
target: ["esp32", "esp32s2", "esp32s3", "esp32c3"]
fail-fast: false
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
submodules: 'recursive'
- name: ESP-IDF v5.1 build
uses: ./.github/actions/esp-idf-with-node
with:
target: "${{ matrix.target }}"
command: "idf.py set-target ${{matrix.target}} build"
build_esp32_v5_2:
build_idf_v5_3_generic:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -37,25 +20,24 @@ jobs:
with:
ref: ${{ github.ref }}
submodules: 'recursive'
- name: ESP-IDF v5.2 build
uses: ./.github/actions/esp-idf-5_2-with-node
- name: Generic ESP-IDF v5.3 target build
uses: ./.github/actions/esp-idf-5_3-with-node
with:
target: "${{ matrix.target }}"
command: "idf.py set-target ${{matrix.target}} build"
build_esp32_v5_3:
build_idf_v5_3_nightly_release:
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
- name: Release config build ESP-IDF v5.3
uses: ./.github/actions/esp-idf-5_3-with-node_nightly
with:
target: "${{ matrix.target }}"
command: "idf.py set-target ${{matrix.target}} build"
command: "bash ./create_release_zip.sh"
- uses: actions/upload-artifact@v4
with:
name: DroneBridge_ESP32_nightly.zip
path: DroneBridge_ESP32_nightly.zip

0 comments on commit e5446e0

Please sign in to comment.