diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9b2a17622..510bd6652 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -90,6 +90,13 @@ jobs: steps: - script: scripts\vsts-vs2017.cmd x64 +- job: "Windows2017ARM64" + displayName: "Windows 2017 ARM64 build" + pool: + vmImage: "vs2017-win2016" + steps: + - script: scripts\vsts-vs2017.cmd amd64_arm64 + - job: "MacOS" displayName: "MacOS build" pool: diff --git a/scripts/vsts-vs2017.cmd b/scripts/vsts-vs2017.cmd index 4ec4deca9..2f573b5f4 100644 --- a/scripts/vsts-vs2017.cmd +++ b/scripts/vsts-vs2017.cmd @@ -1,4 +1,4 @@ -rem Supply argument x64 or x86 +rem Supply argument x64, x86 or amd64_arm64 echo "Build" md build @@ -8,7 +8,8 @@ cmake -DBUILD_DOTNET_BINDINGS=True -DBUILD_JAVA_BINDINGS=True -DBUILD_PYTHON_BIN nmake if ERRORLEVEL 1 exit 1 -if %1 == "x86" goto :BUILD_EXAMPLES +if %1==x86 goto BUILD_EXAMPLES +if %1==amd64_arm64 goto BUILD_EXAMPLES echo "Test python bindings" pushd python python z3test.py z3 @@ -20,10 +21,13 @@ popd :BUILD_EXAMPLES echo "Build and run examples" nmake cpp_example +if %1==amd64_arm64 goto C_EXAMPLE examples\cpp_example_build_dir\cpp_example.exe if ERRORLEVEL 1 exit 1 +:C_EXAMPLE nmake c_example +if %1==amd64_arm64 goto ALL_DONE examples\c_example_build_dir\c_example.exe if ERRORLEVEL 1 exit 1 @@ -49,3 +53,5 @@ python z3test\scripts\test_benchmarks.py build\z3.exe z3test\regressions\smt2 if ERRORLEVEL 1 exit 1 echo "benchmarks tested" +:ALL_DONE +echo "All done"