Skip to content

CI - fix pio-ci library dir override #9257

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 1 commit into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion .github/workflows/build-platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
ESP8266_ARDUINO_BUILDER: "platformio"
run: |
pip install -U platformio
env ESP8266_ARDUINO_SKETCHES="$(find libraries/ -name '*.ino' | shuf -n 10 -)" bash ./tests/build.sh
env ESP8266_ARDUINO_SKETCHES="$(find libraries/ -name '*.ino' | grep -e libraries/esp8266/examples -e SoftwareSerial)" bash ./tests/build.sh
9 changes: 4 additions & 5 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,6 @@ function install_platformio()

# pre-generate config; pio-ci with multiple '-O' options replace each other instead of appending to the same named list
cat <<EOF > $cache_dir/platformio.ini
[platformio]
lib_dir =
${ESP8266_ARDUINO_LIBRARIES}
[env:$board]
platform = espressif8266
board = $board
Expand All @@ -461,6 +458,8 @@ platform_packages =
${toolchain_symlink}
EOF

cat $cache_dir/platformio.ini

echo $ci_end_group
}

Expand Down Expand Up @@ -498,8 +497,8 @@ function build_sketches_with_platformio()
sketchdir=$(dirname $sketch)

local result
time pio ci \
--verbose \
env PLATFORMIO_LIB_DIR="${ESP8266_ARDUINO_LIBRARIES}" \
time pio ci \
--project-conf $cache_dir/platformio.ini \
$sketchdir >$cache_dir/build.log 2>&1 \
&& result=0 || result=1
Expand Down