Skip to content

Commit

Permalink
ci: Windows build via circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Dec 14, 2022
1 parent b14fad9 commit fc37083
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
version: 2.1
orbs:
win: circleci/windows@5.0

executors:
lint:
Expand Down Expand Up @@ -496,6 +498,50 @@ jobs:
- build
- test

release-windows:
executor: win/server-2022
environment:
CONFIGURATION: "Release"
steps:
- checkout
- run:
working_directory: ~/project
command: git submodule update --init --recursive
shell: powershell
- run:
name: 'Build'
command: |
$ErrorActionPreference = "Stop"
& 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
cmake -S . -B build -DEVMONE_TESTING=ON -Wno-dev -G "Ninja" -DCMAKE_BUILD_TYPE="$env:CONFIGURATION" -DHUNTER_CONFIGURATION_TYPES="$Env:CONFIGURATION" -DCMAKE_INSTALL_PREFIX=C:\install
cmake --build build --config "$env:CONFIGURATION"
shell: powershell
- run:
name: 'Test'
command: |
$ErrorActionPreference = "Stop"
cd build
& 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
ctest -C "$env:CONFIGURATION" -j4 --output-on-failure --schedule-random
shell: powershell
- run:
name: "Build Package"
working_directory: ~/project
command: |
$ErrorActionPreference = "Stop"
& 'C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\Launch-VsDevShell.ps1' -Arch amd64
cmake --build build --target package
mkdir package
mv build/evmone*.zip* package
shell: powershell
- store_artifacts:
path: ~/project/package
destination: package
- persist_to_workspace:
root: ~/project/package
paths:
- evmone-*

workflows:
version: 2
evmone:
Expand All @@ -515,6 +561,7 @@ workflows:
requires:
- release-linux
- release-macos
- release-windows
filters:
branches:
ignore: /.*/
Expand All @@ -533,3 +580,4 @@ workflows:
- xcode-min
- gcc-32bit
- fuzzing
- release-windows

0 comments on commit fc37083

Please sign in to comment.