Skip to content

Commit

Permalink
ci: Add Windows builds in CircleCI (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
axic authored Jan 27, 2023
1 parent fb94766 commit 97fac6f
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -426,6 +494,8 @@ workflows:
- build-gcc-32bit
- build-cmake-min
- build-macos
- build-windows
- build-windows-32bit
- bindings-go-latest:
filters:
tags:
Expand Down

0 comments on commit 97fac6f

Please sign in to comment.