From e75a9636fca47690a548f0b2ad14a133b67e6740 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Sat, 23 Oct 2021 16:18:24 +0200
Subject: [PATCH] [data/gitlab-ci/osx-arm64-support] Extends the standard
 single-package.yaml to support osx-arm64 builds

---
 .../data/gitlab-ci/osx-arm64-support.yaml     | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 bob/devtools/data/gitlab-ci/osx-arm64-support.yaml

diff --git a/bob/devtools/data/gitlab-ci/osx-arm64-support.yaml b/bob/devtools/data/gitlab-ci/osx-arm64-support.yaml
new file mode 100644
index 00000000..f2ca8a95
--- /dev/null
+++ b/bob/devtools/data/gitlab-ci/osx-arm64-support.yaml
@@ -0,0 +1,42 @@
+.build_macos_arm_template:
+  extends: .build_template
+  tags:
+    - macos
+    - arm
+  artifacts:
+    paths:
+      - ${CONDA_ROOT}/conda-bld/osx-arm64/*.conda
+      - ${CONDA_ROOT}/conda-bld/osx-arm64/*.tar.bz2
+
+build_macos_arm_38:
+  extends: .build_macos_arm_template
+  variables:
+    PYTHON_VERSION: "3.8"
+  cache:
+    key: "build-py38"
+
+.deploy_template:
+  dependencies:
+    - build_linux_38
+    - build_macos_intel_38
+    - build_macos_arm_38
+
+deploy_beta:
+  extends: .deploy_template
+  environment: beta
+  only:
+    - master
+
+deploy_stable:
+  extends: .deploy_template
+  environment: stable
+  only:
+    - /^v\d+\.\d+\.\d+([abc]\d*)?$/  # PEP-440 compliant version (tags)
+  except:
+    - branches
+
+pypi:
+  dependencies:
+    - build_linux_38
+    - build_macos_intel_38
+    - build_macos_arm_38
-- 
GitLab