Skip to content

Commit

Permalink
Add MSVC ARM64 job to Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
janisozaur authored and NikolajBjorner committed Oct 24, 2019
1 parent 3feb147 commit 9ae1a6f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 8 additions & 2 deletions scripts/vsts-vs2017.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rem Supply argument x64 or x86
rem Supply argument x64, x86 or amd64_arm64

echo "Build"
md build
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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"

0 comments on commit 9ae1a6f

Please sign in to comment.