Skip to content

Fix/changed files #47

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

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
496b841
feat(esp32): Added a new device(xiao esp32s3 plus) (#10768)
is-qian Jan 21, 2025
7089c0a
fix(zigbee): Update esp-zigbee-sdk to 1.6.2 + necessary changes
P-R-O-C-H-Y Jan 21, 2025
15cbb1e
Add IAS Zone Notification Message service to ZigbeeHandlers and Zigbe…
lsroka76 Jan 27, 2025
2fecc48
fix(littlefs): Converted core disableWDT functions to bool (#10896)
lbernstone Jan 27, 2025
732a7cb
feat(zigbee): Add Time cluster support + fix of duplicate indentify c…
P-R-O-C-H-Y Jan 30, 2025
402ab56
fix(SPIFFS): Use new disableWDT bool return value (#10909)
TD-er Jan 30, 2025
f22866f
Update HTTPS certificate in BasicHttpsClient.ino (#10911)
blueskyson Jan 30, 2025
0302b4d
fix(logging): incorrect FPS logging (#10921)
TNeutron Jan 31, 2025
1c01fcd
fix(uart): fixed esp32s2 uart ci test case (#10926)
SuGlider Feb 4, 2025
2040cba
Update README.md to add ESP-SR (#10925)
akdeb Feb 4, 2025
6eb99d3
feat(zigbee): Add IAS Zone endpoints (Contact Switch + Door/Window Ha…
P-R-O-C-H-Y Feb 4, 2025
b385562
NetworkEvents allow stack size to be changed. (#10805)
thekurtovic Feb 4, 2025
8b31d1e
fix(ci): Disable some RainMaker examples on ESP32 (#10931)
me-no-dev Feb 4, 2025
6a11276
fix(ota): Make sure that ArduinoOTA.end() is called in the destructor…
me-no-dev Feb 4, 2025
db0bbad
Created Zigbee Endpoint for Window Covering. (#10914)
hennikul Feb 4, 2025
6fcaf69
fix(wifi): Make sure that esp-hosted events are propagated (#10939)
me-no-dev Feb 6, 2025
5ba4c21
fix(zigbee): Add default destructor and fix initialization of tm stru…
P-R-O-C-H-Y Feb 6, 2025
250c1ab
fix(i2s): Add missing initializer for I2S CLK config (#10963)
me-no-dev Feb 12, 2025
7b651b6
feat(cdc): Add support for two CDC ports at once (#10962)
me-no-dev Feb 13, 2025
6c3a49c
build(deps): bump cryptography from 43.0.1 to 44.0.1 in /tests (#10961)
dependabot[bot] Feb 13, 2025
83abca1
feat(zigbee): Add OTA client cluster support (#10946)
P-R-O-C-H-Y Feb 13, 2025
7f8c77f
feat(zigbee): Add vibration sensor endpoint (#10944)
P-R-O-C-H-Y Feb 13, 2025
606a404
IDF release/v5.3 (#10873)
me-no-dev Feb 13, 2025
fb6b788
feat(zigbee): Support HSV color commands for RGB light endpoint (#10959)
P-R-O-C-H-Y Feb 13, 2025
6fb55a7
feat(board): Update 3rd party board Huidu HD-WF2/HD-WF4 (#10957)
vortigont Feb 13, 2025
5488d5d
Fix crash when using String::move on empty string (#10938) (#10945)
TD-er Feb 13, 2025
6208239
Update core version to 3.1.2
me-no-dev Feb 13, 2025
a7907cd
Add the latest versions to issue report template
me-no-dev Feb 14, 2025
a4ecdb1
feat(zigbee): Bump esp-zigbee-sdk to 1.6.3
P-R-O-C-H-Y Feb 14, 2025
20e5e70
fix(boards): Delete removed Zigbee RCP mode
P-R-O-C-H-Y Feb 17, 2025
758cbd0
Fix crash in String when using nullptr (#10971) (#10972)
TD-er Feb 17, 2025
dbfde15
Update core version to 3.1.3
me-no-dev Feb 17, 2025
47343a4
feat(idf): Add support for IDF v5.4 (#10823)
me-no-dev Jan 8, 2025
50d85a6
fix(ci): Run CI against ESP-IDF v5.4
me-no-dev Jan 10, 2025
18cbd76
feat(eth): Add support for generic IEEE 802.3 driver (#10859)
me-no-dev Jan 15, 2025
f0cf3b1
feat(i2c): Add support for the new I2C driver in IDF v5.4 (#10858)
me-no-dev Jan 21, 2025
35feed5
Merge pull request #10832 from espressif/release/v3.2.x
me-no-dev Feb 18, 2025
783271b
Merge pull request #10890 from P-R-O-C-H-Y/libs/update-zigbee-1.6.2
me-no-dev Feb 18, 2025
8e9f7c3
IDF release/v5.4 e37d33cc (#10980)
me-no-dev Feb 18, 2025
55f4f1b
Update core version to 3.2.0
me-no-dev Feb 18, 2025
646785e
feat(LP_UART): Implements the ESP32-C6/ESP32-P4 Low Power UART as a p…
SuGlider Feb 18, 2025
5afafdf
fix(matter): commentaries and messages related to factory reset (#10988)
SuGlider Feb 19, 2025
eec2af3
feat(zigbee): Add range extender device endpoint (#10970)
P-R-O-C-H-Y Feb 19, 2025
978b441
test(wokwi): Add I2C Master test and enable GPIO and PSRAM tests (#10…
lucasssvaz Feb 19, 2025
cd95e40
ci(report): Add runtime tests report (#10764)
lucasssvaz Feb 19, 2025
9a783a5
feat(zigbee): Add Analog endpoint device (input, output, value cluste…
pwclay Feb 20, 2025
003db9e
Update pins_arduino.h (#11000)
SooDragon Feb 21, 2025
543a647
ci(test): Fix PSRAM test
lucasssvaz Feb 22, 2025
42bd745
ci(test): Fix GPIO test
lucasssvaz Feb 22, 2025
988dbe2
ci(test): Skip some PSRAM tests in P4
lucasssvaz Feb 22, 2025
39be694
ci(runners): Bump runner images version (#10960)
lucasssvaz Feb 25, 2025
164fcc6
fix(board): Update feathers3 wire1 pin definition (#11001)
ericlewis Feb 25, 2025
0c18b17
feat(boards): Add Geekble-nano-ESP32S3 (#11005)
SooDragon Feb 25, 2025
b33470e
IDF release/v5.4 (#10998)
me-no-dev Feb 25, 2025
c76c2ea
Update of Boards.txt & variants - Adding CYObot board - 3rd party boa…
mhpham23 Feb 25, 2025
1467d87
fix(zigbee): use correct pressure cluster function in setTolerance (#…
oddlama Feb 25, 2025
09d89c6
Fix HardwareSerial config (#11007)
gonzabrusco Feb 25, 2025
7485c65
ci(zigbee): Check if Zigbee is enabled for CI tests (#11012)
lucasssvaz Feb 25, 2025
923da95
feat(zigbee): Add ZigbeeGateway endpoint support + Time Cluster bugfi…
P-R-O-C-H-Y Feb 26, 2025
e3bcc58
ci(esp32p4): Add missing options for P4 (#11014)
lucasssvaz Feb 26, 2025
7575fa0
fix(zigbee): use correct carbon dioxide cluster function in setToler…
oddlama Feb 26, 2025
684a931
fix(bt): Compile error on ESP32-P4 (#11035)
iranl Mar 5, 2025
9e2f755
test(i2c): Add test to scan bus (#11022)
lucasssvaz Mar 5, 2025
fb5f11b
feat(matter): necessary changes to insights version for esp_matter (#…
SuGlider Mar 7, 2025
efb02d3
feat(gpio): allows mixing digital and analog read/write operations (#…
SuGlider Mar 9, 2025
4677ea6
Fix to issue #11044 (#11064)
oli-the-kitty Mar 10, 2025
8575d04
fix(eth): Fix RMII Ethernet not being able to be restarted (#11048)
me-no-dev Mar 10, 2025
eeb6a26
fix(wifi): Disable properly LR mode if it was enabled before (#11052)
me-no-dev Mar 10, 2025
bf5265c
feat(eth): Add setters for negotiation, speed and duplex modes (#11053)
me-no-dev Mar 10, 2025
665d6f8
fix(zigbee): Use correct attributeID in setAnalogInputReporting (#11065)
P-R-O-C-H-Y Mar 10, 2025
2276f0b
fix(zigbee): Add manuf_code to report attribure commands (#11066)
P-R-O-C-H-Y Mar 10, 2025
e680e7b
fix(matter): removes a few matter 1.4 / IDF 5.4 compilation warning m…
SuGlider Mar 10, 2025
d9dbc4a
fix(matter): examples must set pin to Digital Mode after analogWrite(…
SuGlider Mar 10, 2025
e8a243c
fix(network): fixes a macro name conflict warning (#11068)
SuGlider Mar 10, 2025
bda7c48
IDF release/v5.4 d4aa25a3 (#11060)
me-no-dev Mar 10, 2025
07d6a5a
feat(Zigbee): Adding Zigbee Wind speed sensor endpoint (#10455)
lboue Mar 12, 2025
c2b0482
ci(hw): Fix files being overwritten (#11019)
lucasssvaz Mar 13, 2025
2a3de9c
test(i2c): Do not use delta as Wokwi timing can be inconsistent (#11080)
lucasssvaz Mar 13, 2025
e61d9a8
ci(actions): Replace changed-files
lucasssvaz Mar 15, 2025
87d89ea
fix
lucasssvaz Mar 15, 2025
3304ae0
fix
lucasssvaz Mar 15, 2025
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
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/Issue-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ body:
options:
- latest master (checkout manually)
- latest development Release Candidate (RC-X)
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.7
- v3.0.6
Expand Down
78 changes: 75 additions & 3 deletions .github/scripts/set_push_chunks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,78 @@

build_all=false
chunks_count=0
last_check_files=""

# Define the file patterns
core_files=(
'\.github/.*'
'cores/.*'
'package/.*'
'tools/.*'
'platform\.txt'
'programmers\.txt'
'variants/esp32/.*'
'variants/esp32c3/.*'
'variants/esp32c6/.*'
'variants/esp32h2/.*'
'variants/esp32p4/.*'
'variants/esp32s2/.*'
'variants/esp32s3/.*'
)
library_files=(
'libraries/.*/examples/.*'
'libraries/.*/src/.*'
)
networking_files=(
'libraries/Network/src/.*'
)
fs_files=(
'libraries/FS/src/.*'
)
static_sketches_files=(
'libraries/NetworkClientSecure/examples/WiFiClientSecure/WiFiClientSecure\.ino'
'libraries/BLE/examples/Server/Server\.ino'
'libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer\.ino'
'libraries/Insights/examples/MinimalDiagnostics/MinimalDiagnostics\.ino'
'libraries/NetworkClientSecure/src/.*'
'libraries/BLE/src/.*'
'libraries/Insights/src/.*'
)
idf_files=(
'idf_component\.yml'
'Kconfig\.projbuild'
'CMakeLists\.txt'
'variants/esp32c2/.*'
)

# Function to check if any files match the patterns
check_files() {
local patterns=("$@")
local files_found=""
for pattern in "${patterns[@]}"; do
if [[ $IS_PR != 'true' ]]; then
files_found+="$(gh api repos/espressif/arduino-esp32/commits/"$GITHUB_SHA" --jq '.files[].filename' | grep -E "$pattern") "
else
files_found+="$(gh pr diff "$PR_NUM" --name-only | grep -E "$pattern") "
fi
done

last_check_files=$(echo "$files_found" | xargs)
if [[ -n $last_check_files ]]; then
echo 'true'
else
echo 'false'
fi
}

# Output the results
CORE_CHANGED=$(check_files "${core_files[@]}")
LIB_CHANGED=$(check_files "${library_files[@]}")
LIB_FILES=$last_check_files
NETWORKING_CHANGED=$(check_files "${networking_files[@]}")
FS_CHANGED=$(check_files "${fs_files[@]}")
STATIC_SKETCHES_CHANGED=$(check_files "${static_sketches_files[@]}")
IDF_CHANGED=$(check_files "${idf_files[@]}")

if [[ $CORE_CHANGED == 'true' ]] || [[ $IS_PR != 'true' ]]; then
echo "Core files changed or not a PR. Building all."
Expand Down Expand Up @@ -76,9 +148,9 @@ chunks+="]"

{
echo "build_all=$build_all"
echo "build_libraries=$BUILD_LIBRARIES"
echo "build_static_sketches=$BUILD_STATIC_SKETCHES"
echo "build_idf=$BUILD_IDF"
echo "build_libraries=$LIB_CHANGED"
echo "build_static_sketches=$STATIC_SKETCHES_CHANGED"
echo "build_idf=$IDF_CHANGED"
echo "chunk_count=$chunks_count"
echo "chunks=$chunks"
} >> "$GITHUB_OUTPUT"
4 changes: 2 additions & 2 deletions .github/scripts/sketch_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function build_sketch { # build_sketch <ide_path> <user_path> <path-to-ino> [ext
build_dir="$ARDUINO_BUILD_DIR"
elif [ "$len" -eq 1 ]; then
# build_dir="$sketchdir/build"
build_dir="$HOME/.arduino/tests/$sketchname/build.tmp"
build_dir="$HOME/.arduino/tests/$target/$sketchname/build.tmp"
fi

output_file="$HOME/.arduino/cli_compile_output.txt"
Expand All @@ -254,7 +254,7 @@ function build_sketch { # build_sketch <ide_path> <user_path> <path-to-ino> [ext
for i in $(seq 0 $((len - 1))); do
if [ "$len" -ne 1 ]; then
# build_dir="$sketchdir/build$i"
build_dir="$HOME/.arduino/tests/$sketchname/build$i.tmp"
build_dir="$HOME/.arduino/tests/$target/$sketchname/build$i.tmp"
fi
rm -rf "$build_dir"
mkdir -p "$build_dir"
Expand Down
28 changes: 15 additions & 13 deletions .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ function run_test {
local error=0
local sdkconfig_path
local extra_args
local test_type

sketchdir=$(dirname "$sketch")
sketchname=$(basename "$sketchdir")
test_type=$(basename "$(dirname "$sketchdir")")

if [ "$options" -eq 0 ] && [ -f "$sketchdir"/ci.json ]; then
len=$(jq -r --arg target "$target" '.fqbn[$target] | length' "$sketchdir"/ci.json)
Expand All @@ -25,9 +27,9 @@ function run_test {
fi

if [ "$len" -eq 1 ]; then
sdkconfig_path="$HOME/.arduino/tests/$sketchname/build.tmp/sdkconfig"
sdkconfig_path="$HOME/.arduino/tests/$target/$sketchname/build.tmp/sdkconfig"
else
sdkconfig_path="$HOME/.arduino/tests/$sketchname/build0.tmp/sdkconfig"
sdkconfig_path="$HOME/.arduino/tests/$target/$sketchname/build0.tmp/sdkconfig"
fi

if [ -f "$sketchdir"/ci.json ]; then
Expand All @@ -43,22 +45,22 @@ function run_test {
fi

if [ ! -f "$sdkconfig_path" ]; then
printf "\033[93mSketch %s not built\nMight be due to missing target requirements or build failure\033[0m\n" "$sketchname"
printf "\033[93mSketch %s build not found in %s\nMight be due to missing target requirements or build failure\033[0m\n" "$(dirname "$sdkconfig_path")" "$sketchname"
printf "\n\n\n"
return 0
fi

local right_target
right_target=$(grep -E "^CONFIG_IDF_TARGET=\"$target\"$" "$sdkconfig_path")
if [ -z "$right_target" ]; then
printf "\033[91mError: Sketch %s compiled for different target\n\033[0m\n" "$sketchname"
local compiled_target
compiled_target=$(grep -E "CONFIG_IDF_TARGET=" "$sdkconfig_path" | cut -d'"' -f2)
if [ "$compiled_target" != "$target" ]; then
printf "\033[91mError: Sketch %s compiled for %s, expected %s\033[0m\n" "$sketchname" "$compiled_target" "$target"
printf "\n\n\n"
return 1
fi

if [ "$len" -eq 1 ]; then
# build_dir="$sketchdir/build"
build_dir="$HOME/.arduino/tests/$sketchname/build.tmp"
build_dir="$HOME/.arduino/tests/$target/$sketchname/build.tmp"
report_file="$sketchdir/$target/$sketchname.xml"
fi

Expand All @@ -81,7 +83,7 @@ function run_test {

if [ "$len" -ne 1 ]; then
# build_dir="$sketchdir/build$i"
build_dir="$HOME/.arduino/tests/$sketchname/build$i.tmp"
build_dir="$HOME/.arduino/tests/$target/$sketchname/build$i.tmp"
report_file="$sketchdir/$target/$sketchname$i.xml"
fi

Expand Down Expand Up @@ -113,14 +115,14 @@ function run_test {
rm "$sketchdir"/diagram.json 2>/dev/null || true

result=0
printf "\033[95mpytest \"%s/test_%s.py\" --build-dir \"%s\" --junit-xml=\"%s\" %s\033[0m\n" "$sketchdir" "$sketchname" "$build_dir" "$report_file" "${extra_args[*]@Q}"
bash -c "set +e; pytest \"$sketchdir/test_$sketchname.py\" --build-dir \"$build_dir\" --junit-xml=\"$report_file\" ${extra_args[*]@Q}; exit \$?" || result=$?
printf "\033[95mpytest \"%s/test_%s.py\" --build-dir \"%s\" --junit-xml=\"%s\" -o junit_suite_name=%s_%s_%s_%s%s %s\033[0m\n" "$sketchdir" "$sketchname" "$build_dir" "$report_file" "$test_type" "$platform" "$target" "$sketchname" "$i" "${extra_args[*]@Q}"
bash -c "set +e; pytest \"$sketchdir/test_$sketchname.py\" --build-dir \"$build_dir\" --junit-xml=\"$report_file\" -o junit_suite_name=${test_type}_${platform}_${target}_${sketchname}${i} ${extra_args[*]@Q}; exit \$?" || result=$?
printf "\n"
if [ $result -ne 0 ]; then
result=0
printf "\033[95mRetrying test: %s -- Config: %s\033[0m\n" "$sketchname" "$i"
printf "\033[95mpytest \"%s/test_%s.py\" --build-dir \"%s\" --junit-xml=\"%s\" %s\033[0m\n" "$sketchdir" "$sketchname" "$build_dir" "$report_file" "${extra_args[*]@Q}"
bash -c "set +e; pytest \"$sketchdir/test_$sketchname.py\" --build-dir \"$build_dir\" --junit-xml=\"$report_file\" ${extra_args[*]@Q}; exit \$?" || result=$?
printf "\033[95mpytest \"%s/test_%s.py\" --build-dir \"%s\" --junit-xml=\"%s\" -o junit_suite_name=%s_%s_%s_%s%s %s\033[0m\n" "$sketchdir" "$sketchname" "$build_dir" "$report_file" "$test_type" "$platform" "$target" "$sketchname" "$i" "${extra_args[*]@Q}"
bash -c "set +e; pytest \"$sketchdir/test_$sketchname.py\" --build-dir \"$build_dir\" --junit-xml=\"$report_file\" -o junit_suite_name=${test_type}_${platform}_${target}_${sketchname}${i} ${extra_args[*]@Q}; exit \$?" || result=$?
printf "\n"
if [ $result -ne 0 ]; then
printf "\033[91mFailed test: %s -- Config: %s\033[0m\n\n" "$sketchname" "$i"
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/build_py_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
jobs:
find-changed-tools:
name: Check if tools have been changed
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
any_changed: ${{ steps.verify-changed-files.outputs.any_changed }}
all_changed_files: ${{ steps.verify-changed-files.outputs.all_changed_files }}
Expand All @@ -30,16 +30,17 @@ jobs:
echo "Make sure you are using a branch inside the repository and not a fork."

- name: Verify Python Tools Changed
uses: tj-actions/changed-files@v41
id: verify-changed-files
with:
fetch_depth: "2"
since_last_remote_commit: "true"
files: |
tools/get.py
tools/espota.py
tools/gen_esp32part.py
tools/gen_insights_package.py
run: |
CHANGED_FILES=$(git log -1 --name-only --pretty=format: -- tools/get.py tools/espota.py tools/gen_esp32part.py tools/gen_insights_package.py)
CHANGED_FILES=$(echo "$CHANGED_FILES" | tr '\n' ' ')
echo "all_changed_files=$CHANGED_FILES" >> $GITHUB_OUTPUT
if [ -n "$CHANGED_FILES" ]; then
echo "any_changed=true" >> $GITHUB_OUTPUT
else
echo "any_changed=false" >> $GITHUB_OUTPUT
fi

- name: List all changed files
shell: bash
run: |
Expand All @@ -55,7 +56,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-20.04, ARM]
os: [windows-latest, macos-latest, ubuntu-latest, ubuntu-24.04-arm]
include:
- os: windows-latest
TARGET: win64
Expand All @@ -64,14 +65,12 @@ jobs:
- os: macos-latest
TARGET: macos
SEPARATOR: ":"
- os: ubuntu-20.04
- os: ubuntu-latest
TARGET: linux-amd64
SEPARATOR: ":"
- os: ARM
CONTAINER: python:3.8-bullseye
- os: ubuntu-24.04-arm
TARGET: arm
SEPARATOR: ":"
container: ${{ matrix.CONTAINER }} # use python container on ARM
env:
DISTPATH: pytools-${{ matrix.TARGET }}
PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi"
Expand All @@ -96,8 +95,6 @@ jobs:
token: ${{ secrets.TOOLS_UPLOAD_PAT }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Python 3.8
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
if: matrix.os != 'ARM'
uses: actions/setup-python@master
with:
python-version: 3.8
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUM: ${{ github.event.pull_request.number }}
IS_PR: ${{ github.event_name == 'pull_request' }}
GITHUB_SHA: ${{ github.sha }}
run: |
if [[ $IS_PR != 'true' ]]; then
files_changed=$(gh api repos/espressif/arduino-esp32/commits/"$GITHUB_SHA" --jq '.files[].filename')
else
files_changed=$(gh pr diff "$PR_NUM" --name-only)
fi
echo "all_changed_files=$files_changed" >> $GITHUB_OUTPUT
echo "Changed files: $files_changed"

- name: Run pre-commit hooks in changed files
run: pre-commit run --color=always --show-diff-on-failure --files ${{ steps.changed-files.outputs.all_changed_files }}
Expand Down
58 changes: 7 additions & 51 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ on:
- "!.github/scripts/tests_*"
- "!.github/scripts/upload_*"
- "variants/esp32/**/*"
- "variants/esp32s2/**/*"
- "variants/esp32s3/**/*"
- "variants/esp32c2/**/*"
- "variants/esp32c3/**/*"
- "variants/esp32c6/**/*"
- "variants/esp32h2/**/*"
- "variants/esp32p4/**/*"
- "variants/esp32s2/**/*"
- "variants/esp32s3/**/*"

concurrency:
group: build-${{github.event.pull_request.number || github.ref}}
Expand Down Expand Up @@ -85,58 +86,13 @@ jobs:
with:
fetch-depth: 2

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files_yaml: |
core:
- '.github/**'
- 'cores/**'
- 'package/**'
- 'tools/**'
- 'platform.txt'
- 'programmers.txt'
- "variants/esp32/**/*"
- "variants/esp32s2/**/*"
- "variants/esp32s3/**/*"
- "variants/esp32c3/**/*"
- "variants/esp32c6/**/*"
- "variants/esp32h2/**/*"
libraries:
- 'libraries/**/examples/**'
- 'libraries/**/src/**'
networking:
- 'libraries/Network/src/**'
fs:
- 'libraries/FS/src/**'
static_sketeches:
- 'libraries/NetworkClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino'
- 'libraries/BLE/examples/Server/Server.ino'
- 'libraries/ESP32/examples/Camera/CameraWebServer/CameraWebServer.ino'
- 'libraries/Insights/examples/MinimalDiagnostics/MinimalDiagnostics.ino'
- 'libraries/NetworkClientSecure/src/**'
- 'libraries/BLE/src/**'
- 'libraries/Insights/src/**'
idf:
- 'idf_component.yml'
- 'Kconfig.projbuild'
- 'CMakeLists.txt'
- "variants/esp32c2/**/*"

- name: Set chunks
id: set-chunks
env:
LIB_FILES: ${{ steps.changed-files.outputs.libraries_all_changed_files }}
IS_PR: ${{ github.event_name == 'pull_request' }}
PR_NUM: ${{ github.event.pull_request.number }}
MAX_CHUNKS: ${{ env.MAX_CHUNKS }}
BUILD_IDF: ${{ steps.changed-files.outputs.idf_any_changed == 'true' }}
BUILD_LIBRARIES: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
BUILD_STATIC_SKETCHES: ${{ steps.changed-files.outputs.static_sketeches_any_changed == 'true' }}
FS_CHANGED: ${{ steps.changed-files.outputs.fs_any_changed == 'true' }}
NETWORKING_CHANGED: ${{ steps.changed-files.outputs.networking_any_changed == 'true' }}
CORE_CHANGED: ${{ steps.changed-files.outputs.core_any_changed == 'true' }}
LIB_CHANGED: ${{ steps.changed-files.outputs.libraries_any_changed == 'true' }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
bash ./.github/scripts/set_push_chunks.sh

Expand Down Expand Up @@ -237,15 +193,15 @@ jobs:
needs.gen-chunks.outputs.build_all == 'true' ||
needs.gen-chunks.outputs.build_libraries == 'true' ||
needs.gen-chunks.outputs.build_idf == 'true'
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The version names here correspond to the versions of espressif/idf Docker image.
# See https://hub.docker.com/r/espressif/idf/tags and
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
# for details.
idf_ver: ["release-v5.3"]
idf_ver: ["release-v5.4"]
idf_target:
[
"esp32",
Expand Down
Loading
Loading