[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:
1 parent
2c3d98729a
commit
f1f27cc83e
6 files changed
+55
-30
No files matched your search
@@ -32,16 +32,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: |
|
||||
export PLATFORMIO_BUILD_FLAGS="'-DDEVELOPMENTOTA=true'"
|
||||
|
||||
Reference in new issue
Block a user