From aaaa895bfcbff8e14738a3ed110356801f48b7fe Mon Sep 17 00:00:00 2001 From: Larry Archer Date: Thu, 10 Apr 2025 16:08:57 -0500 Subject: [PATCH] DEVTOOLS-16307 run cloudflared build on GitLab CI, with macstadium-arm runner --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..80be3e1a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +stages: [build] + +build_cloudflared: + stage: build + tags: + - "macstadium-${RUNNER_ARCH}" + parallel: + matrix: + - RUNNER_ARCH: [arm, intel] + script: + - '[ "${RUNNER_ARCH}" = "arm" ] && export TARGET_ARCH=arm64' + - '[ "${RUNNER_ARCH}" = "intel" ] && export TARGET_ARCH=amd64' + - ARCH=$(uname -m) + - echo ARCH=$ARCH - TARGET_ARCH=$TARGET_ARCH + - ./.teamcity/mac/install-cloudflare-go.sh + - export PATH="/tmp/go/bin:$PATH" + - BUILD_SCRIPT=.teamcity/mac/build.sh + - if [[ ! -x ${BUILD_SCRIPT} ]] ; then exit ; fi + - set -euo pipefail + - echo "Executing ${BUILD_SCRIPT}" + - exec ${BUILD_SCRIPT}