diff --git a/eng/ArduinoCsCI.cmd b/eng/ArduinoCsCI.cmd index b6657bb4c3..21eb3cc7f7 100644 --- a/eng/ArduinoCsCI.cmd +++ b/eng/ArduinoCsCI.cmd @@ -16,6 +16,8 @@ arduino-cli config init arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json arduino-cli core update-index +build.cmd -ci -configuration %2 -preparemachine + set ArduinoRootDir=%1\Documents\Arduino set acspath=%~dp0\..\tools\ArduinoCsCompiler\Frontend\bin\%2\net6.0\acs.exe @@ -23,8 +25,9 @@ git clone https://github.com/firmata/ConfigurableFirmata %ArduinoRootDir%\librar git clone https://github.com/pgrawehr/ExtendedConfigurableFirmata %ArduinoRootDir%\ExtendedConfigurableFirmata arduino-cli core install esp32:esp32 +git branch --list "*main" REM Check whether any compiler files have changed - if so, enable the (long running) compiler tests -git diff --name-status origin/main | find /C /I "tools/ArduinoCsCompiler" +git diff --name-status main | find /C /I "tools/ArduinoCsCompiler" REM Find returns 1 when the string was NOT found, we want to set the variable to true when it does find something if %errorlevel%==0 set RUN_COMPILER_TESTS=TRUE