Fix AppVeyor yaml
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Copy-Item -Path $env:ESP32_LIBS_PATH\bootloader.bin -Destination bootloader.bin
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
Compress-7Zip -Path . -Filter "*.hex" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
Compress-7Zip -Path . -Filter "*.s19" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Copy-Item -Path $env:ESP32_LIBS_PATH\bootloader.bin -Destination bootloader.bin
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
Compress-7Zip -Path . -Filter "*.hex" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
Compress-7Zip -Path . -Filter "*.s19" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Copy-Item -Path $env:ESP32_LIBS_PATH\bootloader.bin -Destination bootloader.bin
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
$cmake = "cmake"
&$cmake --build (Get-Location).path --target all --config "$env:CONFIGURATION"
+ if ($lastexitcode -ne 0)
+ {
+ throw [System.Exception] "CMake build failed with exit code $lastexitcode."
+ }
+
Compress-7Zip -Path . -Filter "*.bin" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion
Compress-7Zip -Path . -Filter "*.hex" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
Compress-7Zip -Path . -Filter "*.s19" -ArchiveFileName $env:BOARD_NAME-$env:GitVersion_SemVer.zip -DisableRecursion -Append
