ci: Add Windows builds in CircleCI
@@ -300,6 +300,74 @@ jobs:
- build
- test
+ build-windows:
+ executor: win/server-2022
+ environment:
+ CMAKE_BUILD_TYPE: Release
+ steps:
+ - checkout
+ - run:
+ name: "Setup environment (bash)"
+ shell: bash
+ command: |
+ echo 'export PATH=$PATH:"/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin"' >> $BASH_ENV
+ - run:
+ name: 'Configure'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
+ which cmake
+ cmake -S . -B ~/build -G Ninja -DCMAKE_INSTALL_PREFIX=C:\install -DEVMC_TESTING=ON
+ - run:
+ name: 'Build'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
+ cmake --build ~/build
+ - run:
+ name: 'Test'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
+ cmake --build ~/build --target test
+
+ build-windows-32bit:
+ executor: win/server-2022
+ environment:
+ CMAKE_BUILD_TYPE: Release
+ steps:
+ - checkout
+ - run:
+ name: "Setup environment (bash)"
+ shell: bash
+ command: |
+ echo 'export PATH=$PATH:"/c/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin"' >> $BASH_ENV
+ - run:
+ name: 'Configure'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch x86
+ which cmake
+ cmake -S . -B ~/build -G Ninja -DCMAKE_INSTALL_PREFIX=C:\install -DEVMC_TESTING=ON
+ - run:
+ name: 'Build'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch x86
+ cmake --build ~/build
+ - run:
+ name: 'Test'
+ shell: powershell
+ command: |
+ $ErrorActionPreference = "Stop"
+ & 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch x86
+ cmake --build ~/build --target test
+
bindings-go-latest:
docker:
- image: cimg/go:1.19
@@ -426,6 +494,8 @@ workflows:
- build-gcc-32bit
- build-cmake-min
- build-macos
+ - build-windows
+ - build-windows-32bit
- bindings-go-latest:
filters:
tags:
