From 4863ac8668341e33abc40b6b1169db5bf5484e00 Mon Sep 17 00:00:00 2001 From: Erik Hons Date: Wed, 15 Jan 2025 09:38:04 -0600 Subject: [PATCH] add Windows CI workflow --- .github/workflows/ci-windows.yml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci-windows.yml diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml new file mode 100644 index 0000000..5bfaa06 --- /dev/null +++ b/.github/workflows/ci-windows.yml @@ -0,0 +1,46 @@ +name: CI Build on Windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install Conan + run: python -m pip install conan + + - name: Detect Conan Default Profile + run: conan profile detect + + - name: Install dependencies with Conan + run: > + conan install + --requires="libsigcpp/3.0.7" + --requires="expat/2.6.2" + --requires="libuv/1.44.2" + --tools-requires="pkgconf/2.2.0" + --build=missing + --output-folder=build + -pr default + -s "compiler.cppstd=17" + -g PkgConfigDeps -g CMakeToolchain + + - name: Generate Build System + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: cmake --build ${{github.workspace}}/build --config Release -DBUILD_TESTING=On -DENABLE_UV_SUPPORT=On