[DEV] Add automatic BT lib replacement for BLE environments (#1860)

So that the replacement is done locally on the development environments but also with the CI
This commit is contained in:
Florian authored and GitHub committed 2024-01-09 12:52:59 -06:00
1 parent 2c3d98729a
commit f1f27cc83e
6 files changed
+55 -30

No files matched your search

-10
View File
@@ -24,16 +24,6 @@ jobs:
run: |
ESP32_VERSION=$(grep 'esp32_platform\s*=' platformio.ini | cut -d'@' -f2 | tr -d '[:space:]')
echo "ESP32_PLATFORM_VERSION=${ESP32_VERSION}" >> $GITHUB_ENV
- name: Trigger framework installation
run: platformio run -e esp32dev-all-test
- name: Replace libbtdm_app.a file
run: cp lib/esp32-bt-lib/esp32/libbtdm_app.a $HOME/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/ld/libbtdm_app.a
- name: Verify file replacement
run: |
echo "Listing the file at the target location:"
ls -ltr $HOME/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/ld/
echo "Checking file checksum:"
md5sum $HOME/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/ld/libbtdm_app.a
- name: Run PlatformIO
run: platformio run
- name: Prepare Release Assets