From 7e96be7e88a8e8424531bb1c209686c525b77ac6 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 9 Sep 2022 21:53:32 +0200 Subject: [PATCH] [ci] Added build wheels win job. --- CMakePresets.json | 3 ++- scripts/ci/jobs/build-wheels.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index 500fcc83850..3f2871df967 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -213,7 +213,8 @@ "name": "wheel-win", "inherits": "wheel", "cacheVariables": { - "OGS_USE_MFRONT": "OFF" + "OGS_USE_MFRONT": "OFF", + "OGS_BUILD_PROCESS_TH2M": "OFF" }, "condition": { "type": "equals", diff --git a/scripts/ci/jobs/build-wheels.yml b/scripts/ci/jobs/build-wheels.yml index b08f6981978..213db165ae9 100644 --- a/scripts/ci/jobs/build-wheels.yml +++ b/scripts/ci/jobs/build-wheels.yml @@ -34,3 +34,22 @@ build wheels mac: parallel: matrix: - ARCHITECTURE: ["amd64", "arm64"] + +build wheels win: + stage: build + needs: [meta] + tags: + - windows + extends: + - .vs2019-environment + script: + - pipx run cibuildwheel + - > + pipx run twine upload + --repository-url https://gitlab.opengeosys.org/api/v4/projects/${CI_PROJECT_ID}/packages/pypi + --username gitlab-ci-token + --password ${CI_JOB_TOKEN} + wheelhouse/* + artifacts: + paths: + - wheelhouse/ -- GitLab