diff --git a/circle.yml b/circle.yml index 8be835818e..59190bdb2b 100644 --- a/circle.yml +++ b/circle.yml @@ -1,4 +1,6 @@ version: 2.1 +orbs: + win: circleci/windows@5.0 executors: lint: @@ -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: @@ -515,6 +561,7 @@ workflows: requires: - release-linux - release-macos + - release-windows filters: branches: ignore: /.*/ @@ -533,3 +580,4 @@ workflows: - xcode-min - gcc-32bit - fuzzing + - release-windows