CI: Add build instructions for Windows Signed-off-by: Ran Benita <ran@unusedvar.com>
diff --git a/.azure-pipelines/steps/dependencies-windows.yml b/.azure-pipelines/steps/dependencies-windows.yml
new file mode 100644
index 0000000..1875724
--- /dev/null
+++ b/.azure-pipelines/steps/dependencies-windows.yml
@@ -0,0 +1,7 @@
+---
+steps:
+ - bash: |
+ set -euo pipefail
+ choco install ninja winflexbison3 -y --no-progress --stop-on-first-failure
+ python -m pip install --upgrade pip meson
+ displayName: 'Dependencies (Windows)'
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index ea209fe..0d1136b 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -30,3 +30,16 @@ jobs:
parameters:
options: -Denable-wayland=false -Denable-x11=false
prepare: 'export PATH="/usr/local/opt/bison/bin:${PATH}"'
+
+ - job: 'Windows'
+ dependsOn: []
+ pool:
+ vmImage: 'vs2017-win2016'
+ steps:
+ - template: .azure-pipelines/steps/dependencies-python.yml
+ - template: .azure-pipelines/steps/dependencies-windows.yml
+ - template: .azure-pipelines/steps/meson.yml
+ parameters:
+ compiler: cl
+ options: -Denable-wayland=false -Denable-x11=false -Denable-docs=false
+ prepare: 'call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64'