Skip to content

Release/v5.1 #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 73 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b0f1405
Rework the lib-builder for ESP-IDF v5.1
me-no-dev Jan 23, 2023
5a174cb
Update package json with tolls matching the ESP-IDF version
me-no-dev Feb 9, 2023
cafcea0
fix: rainmaker examples crashing on s3 due to low stack memory. (#106…
sanketwadekar Feb 23, 2023
55c3321
Update scripts with the latest requirements
me-no-dev Mar 13, 2023
47ea807
Update configs + SR Support
me-no-dev Apr 7, 2023
725f9c3
Add esp-elf-gdp to the list of packages
me-no-dev Apr 8, 2023
01a9e39
Fix RainMaker builds and new sr models path
me-no-dev Apr 10, 2023
32acbb7
Temporary force arduino branch for CI to work
me-no-dev Apr 10, 2023
57ca1a0
Merge branch 'master' into esp-idf-v5.1
me-no-dev Apr 10, 2023
248e8e8
fix target branch
me-no-dev Apr 10, 2023
362fbfb
Delete esp-dl component manifest for requiring IDF 4.4.x
me-no-dev Apr 10, 2023
4db7ea7
Temporary changes to allow Cron CI to run
me-no-dev Apr 10, 2023
3b1b774
Support builds based on ESP-IDF tag
me-no-dev Apr 11, 2023
8fce687
Push to esp32-arduino-libs
me-no-dev Apr 11, 2023
055de09
Update repository_dispatch.sh
me-no-dev Apr 11, 2023
1f2b4cf
Merge branch 'master' into release/v5.1
me-no-dev Apr 11, 2023
7ceb046
Rework scripts to allow build when either dst needs it
me-no-dev Apr 12, 2023
7562fbd
Github complains when pushing to the libs repo
me-no-dev Apr 12, 2023
08eef9c
Authenticate to the libs repo
me-no-dev Apr 12, 2023
dbf19e2
Attempt at splitting SDK from Arduino
me-no-dev Apr 12, 2023
846dc29
Archive only the result and reorder deploy commands
me-no-dev Apr 12, 2023
4e71866
Update cron.sh
me-no-dev Apr 12, 2023
ae1bfb5
Fix script and zip paths
me-no-dev Apr 12, 2023
8b4c2c9
Fix download URL and json merger
me-no-dev Apr 12, 2023
6a16048
Change sdk folder structure and fix json generation
me-no-dev Apr 13, 2023
361e98a
Switch output folder from sdk to esp32-arduino-libs
me-no-dev Apr 13, 2023
4e9db61
arduino_tinyusb: compile support for DFU mode (#116)
pillo79 Apr 19, 2023
2cd35e7
Update PlatformIO build script templates (#118)
valeros Apr 28, 2023
f7ccc89
Autogenerate PlatformIO manifest file for prebuilt SDK libs (#119)
valeros May 4, 2023
690ecfc
Move IDF definitions to be available with any build
me-no-dev May 4, 2023
5ac6498
Use more components from registry and add mp3 decoder
me-no-dev May 12, 2023
470ee2e
esp-sr component requires clearing before each build
me-no-dev May 12, 2023
c3ce345
revert ESP_SR from component manager
me-no-dev May 12, 2023
03718e2
Build ESP_SR only for ESP32-S3 for now
me-no-dev May 13, 2023
94d73cb
[TinyUSB] Update esp32sx dcd and add dwc2 option
me-no-dev Jun 5, 2023
acd3dbe
Workaround for recent change in ESP-Insights
me-no-dev Jun 5, 2023
830a556
Add initial support for ESP32-C6
me-no-dev Jun 20, 2023
3b978f9
Run build tests on ESP32-C6
me-no-dev Jun 20, 2023
31d4f9d
Remove -mlongcalls for non-xtensa chips
me-no-dev Jun 20, 2023
2f71f35
Temp fix for ESP-Insights on C6
me-no-dev Jun 30, 2023
9c02025
Add support for ESP32H2
me-no-dev Jul 1, 2023
8863044
Merge branch 'master' into release/v5.1
me-no-dev Jul 18, 2023
5282659
Merge branch 'master' into release/v5.1
me-no-dev Jul 18, 2023
612954f
Added tflite-micro component (#128)
sanketwadekar Jul 20, 2023
419c869
Make cron rebuild the libs if they need to be pushed to Arduino
me-no-dev Jul 20, 2023
d2c0c2d
Merge branch 'master' into release/v5.1
me-no-dev Jul 20, 2023
fa65d3a
Update build actions
me-no-dev Jul 21, 2023
228fe38
Fix permissions
me-no-dev Jul 21, 2023
a772d13
Do not build for obsolete Flash modes
me-no-dev Jul 21, 2023
316428f
Try separate detect for cron builds
me-no-dev Jul 22, 2023
31eb873
Add permissions to github api
me-no-dev Jul 22, 2023
cf40f82
Try more basic commit detection
me-no-dev Jul 22, 2023
4c04995
another try to pass vars and get commit
me-no-dev Jul 22, 2023
c7c50da
Update push.yml
me-no-dev Jul 22, 2023
ee2f99f
Update config.sh
me-no-dev Jul 22, 2023
ca06063
Enable builds again
me-no-dev Jul 22, 2023
4718960
Update build.sh
me-no-dev Jul 22, 2023
19c90c2
Combine the artifacts from all jobs
me-no-dev Jul 22, 2023
15eb005
fix and test deploy check
me-no-dev Jul 22, 2023
beb96c7
Update push.yml
me-no-dev Jul 22, 2023
64f4255
Disable Memprot to allow loading external elfs
me-no-dev Jul 25, 2023
fb0f394
Fix archive name
me-no-dev Jul 26, 2023
27ddd00
Disable coredump to flash
me-no-dev Jul 27, 2023
68a5a9a
Enable SPI ETH KSZ8851SNL
me-no-dev Aug 29, 2023
ebec5d9
Add temporary support for Arduino SPI Ethernet
me-no-dev Aug 30, 2023
53896a8
Add a temporary fix for relative include in BT lib
me-no-dev Sep 4, 2023
aa0040a
Enable Classic BT HID Host and Device for ESP32
me-no-dev Sep 5, 2023
3371e47
Revert "Enable Classic BT HID Host and Device for ESP32"
me-no-dev Sep 5, 2023
1060ad0
C6 was added to ESP-SR
me-no-dev Sep 11, 2023
1812801
Update Ethernet and remove SR workaround
me-no-dev Sep 15, 2023
67e424d
Pin RainMaker version
me-no-dev Sep 29, 2023
7b3f7e5
Update target branch
me-no-dev Oct 5, 2023
8bc9f05
Add back cron.sh
me-no-dev Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 99 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
# * * * * *
- cron: '0 */6 * * *'

defaults:
run:
shell: bash

jobs:
run:
name: Build with IDF ${{ matrix.idf_branch }}
Expand All @@ -22,7 +26,7 @@ jobs:
matrix:
idf_branch: [release/v5.1, release/v4.4] #, release/v3.3]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install dependencies
run: bash ./tools/prepare-ci.sh
- name: Build
Expand All @@ -31,9 +35,101 @@ jobs:
GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
IDF_BRANCH: ${{ matrix.idf_branch }}
run: bash ./tools/cron.sh
run: |
git checkout ${{ matrix.idf_branch }}
bash ./tools/cron.sh
- name: Upload archive
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist


# check:
# name: Check if result should be deployed
# runs-on: ubuntu-latest
# strategy:
# matrix:
# branch: [release/v5.1, release/v4.4] #, release/v3.3]
# outputs:
# idf_branch: ${{ steps.check.outputs.idf_branch }}
# idf_commit: ${{ steps.check.outputs.idf_commit }}
# ar_branch: ${{ steps.check.outputs.ar_branch }}
# ar_new_commit_message: ${{ steps.check.outputs.ar_new_commit_message }}
# ar_new_branch_name: ${{ steps.check.outputs.ar_new_branch_name }}
# ar_new_pr_title: ${{ steps.check.outputs.ar_new_pr_title }}
# ar_has_commit: ${{ steps.check.outputs.ar_has_commit }}
# ar_has_branch: ${{ steps.check.outputs.ar_has_branch }}
# ar_has_pr: ${{ steps.check.outputs.ar_has_pr }}
# libs_version: ${{ steps.check.outputs.libs_version }}
# libs_has_commit: ${{ steps.check.outputs.libs_has_commit }}
# libs_has_branch: ${{ steps.check.outputs.libs_has_branch }}
# steps:
# - uses: actions/checkout@v3
# - id: check
# env:
# GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
# GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
# GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
# IDF_BRANCH: ${{ matrix.idf_branch }}
# run: bash ./tools/check-deploy-needed.sh

# build:
# name: Build Libs for ${{ matrix.target }}
# runs-on: ubuntu-latest
# needs: check
# if: needs.check.outputs.libs_has_commit == '0' || needs.check.outputs.ar_has_commit == '0'
# strategy:
# matrix:
# target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2]
# fail-fast: false
# steps:
# - uses: actions/checkout@v3
# # - name: Install dependencies
# # run: bash ./tools/prepare-ci.sh
# - shell: bash
# name: Build Libs for ${{ matrix.target }}
# run: echo ${{ matrix.target }}
# # run: bash ./build.sh -t ${{ matrix.target }}
# # - name: Upload archive
# # uses: actions/upload-artifact@v3
# # with:
# # name: artifacts
# # path: dist

# deploy:
# name: Deploy build
# runs-on: ubuntu-latest
# needs: [check, build]
# steps:
# - uses: actions/checkout@v3
# - shell: bash
# env:
# GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
# GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
# GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
# IDF_BRANCH: ${{ needs.check.outputs.idf_branch }}
# IDF_COMMIT: ${{ needs.check.outputs.idf_commit }}
# AR_BRANCH: ${{ needs.check.outputs.ar_branch }}
# AR_NEW_COMMIT_MESSAGE: ${{ needs.check.outputs.ar_new_commit_message }}
# AR_NEW_BRANCH_NAME: ${{ needs.check.outputs.ar_new_branch_name }}
# AR_NEW_PR_TITLE: ${{ needs.check.outputs.ar_new_pr_title }}
# AR_HAS_COMMIT: ${{ needs.check.outputs.ar_has_commit }}
# AR_HAS_BRANCH: ${{ needs.check.outputs.ar_has_branch }}
# AR_HAS_PR: ${{ needs.check.outputs.ar_has_pr }}
# LIBS_VERSION: ${{ needs.check.outputs.libs_version }}
# LIBS_HAS_COMMIT: ${{ needs.check.outputs.libs_has_commit }}
# LIBS_HAS_BRANCH: ${{ needs.check.outputs.libs_has_branch }}
# run: |
# echo "IDF_COMMIT: $IDF_COMMIT"
# echo "AR_BRANCH: $AR_BRANCH"
# echo "AR_NEW_COMMIT_MESSAGE: $AR_NEW_COMMIT_MESSAGE"
# echo "AR_NEW_BRANCH_NAME: $AR_NEW_BRANCH_NAME"
# echo "AR_NEW_PR_TITLE: $AR_NEW_PR_TITLE"
# echo "AR_HAS_COMMIT: $AR_HAS_COMMIT"
# echo "AR_HAS_BRANCH: $AR_HAS_BRANCH"
# echo "AR_HAS_PR: $AR_HAS_PR"
# echo "LIBS_VERSION: $LIBS_VERSION"
# echo "LIBS_HAS_COMMIT: $LIBS_HAS_COMMIT"
# echo "LIBS_HAS_BRANCH: $LIBS_HAS_BRANCH"

37 changes: 33 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,50 @@ concurrency:
cancel-in-progress: true

jobs:

build-libs:
name: Build Libs for ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target: [esp32, esp32s2, esp32s3, esp32c3]
target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: bash ./tools/prepare-ci.sh
- name: Build Libs for ${{ matrix.target }}
run: bash ./build.sh -t ${{ matrix.target }}
run: bash ./build.sh -e -t ${{ matrix.target }}
- name: Upload archive
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: artifacts-${{ matrix.target }}
name: artifacts
path: dist

combine-artifacts:
name: Combine artifacts
needs: build-libs
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
path: dist
- shell: bash
run: |
mkdir -p out
find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
- name: Upload full esp32-arduino-libs archive
uses: actions/upload-artifact@v3
with:
name: esp32-arduino-libs
path: dist/esp32-arduino-libs.tar.gz
- name: Upload package_esp32_index.template.json
uses: actions/upload-artifact@v3
with:
name: package-esp32-index-json
path: dist/package_esp32_index.template.json

4 changes: 2 additions & 2 deletions .github/workflows/repository_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Dispatch Event
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install dependencies
run: bash ./tools/prepare-ci.sh
- name: Handle Event
Expand All @@ -17,7 +17,7 @@ jobs:
GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
run: bash ./tools/repository_dispatch.sh
- name: Upload archive
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ components/esp-rainmaker/
components/espressif__esp-dsp/
components/esp-insights/
components/arduino_tinyusb/tinyusb/
components/tflite-micro/
esp-idf/
out/
build/
Expand All @@ -19,3 +20,5 @@ sdkconfig
sdkconfig.old
version.txt
dependencies.lock
managed_components/
target/
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
cmake_minimum_required(VERSION 3.5)

set(RMAKER_PATH ${CMAKE_SOURCE_DIR}/components/esp-rainmaker)
set(EXTRA_COMPONENT_DIRS ${RMAKER_PATH}/components/esp-insights/components ${RMAKER_PATH}/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
set(INSIGHTS_PATH ${RMAKER_PATH}/components/esp-insights)
set(TFLITE_PATH ${CMAKE_SOURCE_DIR}/components/tflite-micro)

set(EXTRA_COMPONENT_DIRS ${INSIGHTS_PATH}/components ${RMAKER_PATH}/components ${TFLITE_PATH}/components)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(arduino-lib-builder)
Expand All @@ -13,7 +16,7 @@ idf_build_get_property(elf EXECUTABLE GENERATOR_EXPRESSION)
add_custom_command(
OUTPUT "idf_libs"
COMMAND ${CMAKE_SOURCE_DIR}/tools/copy-libs.sh ${IDF_TARGET} "${CONFIG_LIB_BUILDER_FLASHMODE}" "${CONFIG_SPIRAM_MODE_OCT}" "${CONFIG_IDF_TARGET_ARCH_XTENSA}"
DEPENDS ${elf}
DEPENDS all
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
VERBATIM
)
Expand Down
Loading