* Rework the lib-builder for ESP-IDF v5.1 * Update package json with tolls matching the ESP-IDF version * fix: rainmaker examples crashing on s3 due to low stack memory. (#106) (#107) * Update scripts with the latest requirements * Update configs + SR Support * Add esp-elf-gdp to the list of packages * Fix RainMaker builds and new sr models path * Temporary force arduino branch for CI to work * fix target branch * Delete esp-dl component manifest for requiring IDF 4.4.x * Temporary changes to allow Cron CI to run * Support builds based on ESP-IDF tag * Push to esp32-arduino-libs * Update repository_dispatch.sh * Rework scripts to allow build when either dst needs it * Github complains when pushing to the libs repo * Authenticate to the libs repo * Attempt at splitting SDK from Arduino * Archive only the result and reorder deploy commands * Update cron.sh * Fix script and zip paths * Fix download URL and json merger * Change sdk folder structure and fix json generation * Switch output folder from sdk to esp32-arduino-libs * arduino_tinyusb: compile support for DFU mode (#116) * Update PlatformIO build script templates (#118) Adds support for new package with precompiled SDK libraries * Autogenerate PlatformIO manifest file for prebuilt SDK libs (#119) * Autogenerate PlatformIO manifest file for prebuilt SDK libs - Add a special Python script that generates "package.json" with IDF revision from the "version.txt" according to SemVer * Tidy up * Refactor manifest generator Now IDF version and commit hash are passed directly from Git client instead of reading from a pregenerated "version.txt" file * Move IDF definitions to be available with any build * Use more components from registry and add mp3 decoder * esp-sr component requires clearing before each build * revert ESP_SR from component manager * Build ESP_SR only for ESP32-S3 for now * [TinyUSB] Update esp32sx dcd and add dwc2 option * Workaround for recent change in ESP-Insights * Add initial support for ESP32-C6 * Run build tests on ESP32-C6 * Remove -mlongcalls for non-xtensa chips * Temp fix for ESP-Insights on C6 * Add support for ESP32H2 * Added tflite-micro component (#128) * Update build badge in README.md * Added tflite-micro component --------- Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com> * Make cron rebuild the libs if they need to be pushed to Arduino For when we change something in the lib-builder, but no new updates are available in ESP-IDF * Update build actions * Fix permissions * Do not build for obsolete Flash modes * Try separate detect for cron builds * Add permissions to github api * Try more basic commit detection * another try to pass vars and get commit * Update push.yml * Update config.sh * Enable builds again * Update build.sh * Combine the artifacts from all jobs * fix and test deploy check * Update push.yml * Disable Memprot to allow loading external elfs * Fix archive name * Disable coredump to flash * Enable SPI ETH KSZ8851SNL * Add temporary support for Arduino SPI Ethernet * Add a temporary fix for relative include in BT lib * Enable Classic BT HID Host and Device for ESP32 * Revert "Enable Classic BT HID Host and Device for ESP32" This reverts commit aa0040ad271d00ac507fd2b478ee143b6c118615. * C6 was added to ESP-SR * Update Ethernet and remove SR workaround * Pin RainMaker version * Update target branch * Add back cron.sh --------- Co-authored-by: Sanket Wadekar <67091512+sanketwadekar@users.noreply.github.com> Co-authored-by: Luca Burelli <pil@iol.it> Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
85 lines
2.7 KiB
Bash
Executable file
85 lines
2.7 KiB
Bash
Executable file
#/bin/bash
|
|
|
|
source ./tools/config.sh
|
|
|
|
IDF_COMMIT=`github_last_commit "$IDF_REPO" "$IDF_BRANCH"`
|
|
|
|
if [ -z $GITHUB_HEAD_REF ]; then
|
|
current_branch=`git branch --show-current`
|
|
else
|
|
current_branch="$GITHUB_HEAD_REF"
|
|
fi
|
|
|
|
AR_BRANCH="master"
|
|
if [[ "$current_branch" != "master" && `github_branch_exists "$AR_REPO" "$current_branch"` == "1" ]]; then
|
|
AR_BRANCH="$current_branch"
|
|
else
|
|
AR_BRANCH_NAME="idf-$IDF_BRANCH"
|
|
has_ar_branch=`github_branch_exists "$AR_REPO" "$AR_BRANCH_NAME"`
|
|
if [ "$has_ar_branch" == "1" ]; then
|
|
AR_BRANCH="$AR_BRANCH_NAME"
|
|
else
|
|
has_ar_branch=`github_branch_exists "$AR_REPO" "$AR_PR_TARGET_BRANCH"`
|
|
if [ "$has_ar_branch" == "1" ]; then
|
|
AR_BRANCH="$AR_PR_TARGET_BRANCH"
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# format new branch name and pr title
|
|
AR_NEW_BRANCH_NAME="idf-$IDF_BRANCH"
|
|
AR_NEW_COMMIT_MESSAGE="IDF $IDF_BRANCH $IDF_COMMIT"
|
|
AR_NEW_PR_TITLE="IDF $IDF_BRANCH"
|
|
|
|
LIBS_VERSION="idf-"${IDF_BRANCH//\//_}"-$IDF_COMMIT"
|
|
|
|
AR_HAS_BRANCH=`github_branch_exists "$AR_REPO" "$AR_NEW_BRANCH_NAME"`
|
|
if [ "$AR_HAS_BRANCH" == "1" ]; then
|
|
AR_HAS_COMMIT=`github_commit_exists "$AR_REPO" "$AR_NEW_BRANCH_NAME" "$IDF_COMMIT"`
|
|
else
|
|
AR_HAS_COMMIT=`github_commit_exists "$AR_REPO" "$AR_BRANCH" "$IDF_COMMIT"`
|
|
fi
|
|
AR_HAS_PR=`github_pr_exists "$AR_REPO" "$AR_NEW_BRANCH_NAME"`
|
|
|
|
LIBS_HAS_BRANCH=`github_branch_exists "$AR_LIBS_REPO" "$AR_NEW_BRANCH_NAME"`
|
|
LIBS_HAS_COMMIT=`github_commit_exists "$AR_LIBS_REPO" "$AR_NEW_BRANCH_NAME" "$IDF_COMMIT"`
|
|
|
|
export IDF_COMMIT
|
|
|
|
export AR_NEW_BRANCH_NAME
|
|
export AR_NEW_COMMIT_MESSAGE
|
|
export AR_NEW_PR_TITLE
|
|
|
|
export AR_HAS_COMMIT
|
|
export AR_HAS_BRANCH
|
|
export AR_HAS_PR
|
|
|
|
export LIBS_VERSION
|
|
export LIBS_HAS_COMMIT
|
|
export LIBS_HAS_BRANCH
|
|
|
|
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"
|
|
|
|
if [ ! -x $GITHUB_OUTPUT ]; then
|
|
echo "idf_commit=$IDF_COMMIT" >> "$GITHUB_OUTPUT"
|
|
echo "ar_branch=$AR_BRANCH" >> "$GITHUB_OUTPUT"
|
|
echo "ar_new_commit_message=$AR_NEW_COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"
|
|
echo "ar_new_branch_name=$AR_NEW_BRANCH_NAME" >> "$GITHUB_OUTPUT"
|
|
echo "ar_new_pr_title=$AR_NEW_PR_TITLE" >> "$GITHUB_OUTPUT"
|
|
echo "ar_has_commit=$AR_HAS_COMMIT" >> "$GITHUB_OUTPUT"
|
|
echo "ar_has_branch=$AR_HAS_BRANCH" >> "$GITHUB_OUTPUT"
|
|
echo "ar_has_pr=$AR_HAS_PR" >> "$GITHUB_OUTPUT"
|
|
echo "libs_version=$LIBS_VERSION" >> "$GITHUB_OUTPUT"
|
|
echo "libs_has_commit=$LIBS_HAS_COMMIT" >> "$GITHUB_OUTPUT"
|
|
echo "libs_has_branch=$LIBS_HAS_BRANCH" >> "$GITHUB_OUTPUT"
|
|
fi
|