From 21f132382f4152e32ace0b79e1a297fd224a8a83 Mon Sep 17 00:00:00 2001 From: Julien Lamy Date: Sun, 14 Apr 2024 17:47:41 +0200 Subject: [PATCH] Add Windows CI --- .ci/build/conda.py | 2 +- .github/workflows/build.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/build/conda.py b/.ci/build/conda.py index 6bf5d62..f04fdd8 100644 --- a/.ci/build/conda.py +++ b/.ci/build/conda.py @@ -1,7 +1,7 @@ import subprocess import sys -conda = sys.argv[1] if len(sys.argv) >= 2 else "conda" +conda = sys.argv[1] if len(sys.argv) >= 2 else os.environ.get("MAMBA_EXE", "conda") subprocess.check_call([ conda, "install", "--yes", "-c", "conda-forge", diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6735d62..2d49371 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,7 @@ jobs: - { os: "ubuntu-latest", container: "ubuntu:jammy", packaging: "apt", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python3" } - { os: "ubuntu-latest", packaging: "conda", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python" } - { os: "macos-latest", packaging: "conda", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python" } + - { os: "windows-latest", packaging: "conda", cmake_options: "-DCMAKE_CXX_STANDARD=17", python: "python" } env: WORKSPACE: "${{ github.workspace }}" CMAKE_OPTIONS: "${{ matrix.cmake_options }}"