From 3dded39521aa5ac2d1d67562344df1b8afeaf17a Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 8 Sep 2022 15:14:27 +0200
Subject: [PATCH] [ci] Added mac jobs for wheels.

---
 scripts/ci/jobs/build-wheels.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/scripts/ci/jobs/build-wheels.yml b/scripts/ci/jobs/build-wheels.yml
index 6bcab571755..b08f6981978 100644
--- a/scripts/ci/jobs/build-wheels.yml
+++ b/scripts/ci/jobs/build-wheels.yml
@@ -13,3 +13,24 @@ build wheels linux:
   artifacts:
     paths:
       - wheelhouse/
+
+build wheels mac:
+  stage: build
+  needs: [meta]
+  tags:
+    - mac
+    - ${ARCHITECTURE}
+  script:
+    - CMAKE_OSX_DEPLOYMENT_TARGET=10.15 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/
+  parallel:
+    matrix:
+      - ARCHITECTURE: ["amd64", "arm64"]
-- 
GitLab