From 66570eb7c4e694f4b5dcee810fde1a9587989d0e Mon Sep 17 00:00:00 2001 From: Jackarain Date: Tue, 21 Nov 2023 20:24:05 +0800 Subject: [PATCH] Add windows for circleci --- .circleci/config.yml | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1472043d3c..4248163eb3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,20 @@ version: 2.1 +orbs: + win: circleci/windows@2.4.0 + +workflows: + build-workflow: + jobs: + - build-x86_64 + - build-aarch64 + - build-windows + jobs: - build-aarch64: + build-x86_64: machine: image: ubuntu-2004:202101-01 - resource_class: arm.medium + docker_layer_caching: true steps: - run: name: Check OS @@ -22,10 +32,10 @@ jobs: - store_artifacts: path: build/docker - build-x86_64: + build-aarch64: machine: image: ubuntu-2004:202101-01 - docker_layer_caching: true + resource_class: arm.medium steps: - run: name: Check OS @@ -43,8 +53,21 @@ jobs: - store_artifacts: path: build/docker -workflows: - build-workflow: - jobs: - - build-x86_64 - - build-aarch64 + build-windows: + executor: + name: win/default + shell: powershell.exe + steps: + + - checkout + - run: + name: Install cmake + command: choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' + - run: + name: Build on windows + command: | + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_WERROR=OFF + cmake --build build --config Release + + - store_artifacts: + path: build/bin/release/proxy_server.exe