Merge pull request #38 from HendrikRauh/HendrikRauh/issue36

Pre build script to update submodules
This commit is contained in:
Raffael Wolf 2024-12-13 22:03:23 +01:00 committed by GitHub
commit d9874bc79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -20,3 +20,4 @@ platform = espressif32
board = lolin_s2_mini board = lolin_s2_mini
lib_deps = lib_deps =
bblanchon/ArduinoJson @ ^7.2.0 bblanchon/ArduinoJson @ ^7.2.0
extra_scripts = pre:pre_extra_script.py

8
pre_extra_script.py Normal file
View file

@ -0,0 +1,8 @@
Import("env")
if env.IsIntegrationDump():
# stop the current script execution
Return()
env.Execute("git submodule update --init --recursive")
print("✅ SUBMODULES UPDATED")