Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-11-03 13:27:25 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-11-03 13:53:00 +0300
commit1ffb375a3c1794b7345d4dc84216af321b3e7459 (patch)
tree82cc2e56cbd0dba8b6eb2974df3fba830f182846
parent53254443cb8844eaad919ab0bd76199a8a371503 (diff)
ci: Install default Go version in macOS job
The macOS job installs an unspecified version of Go that gets determined by the build image. At the point of writing, this is Go 1.17, which we are about to drop support for. Update the build instructions to install the default Go version we're using in our CI so that we have full control over it. This prepares us for upgrading to Go 1.18+.
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f9f593f9..907bb8806 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -297,6 +297,12 @@ test:macos:
stage: test
image: macos-12-xcode-14
script:
+ - brew uninstall go
+ - brew install cmake go@${GO_VERSION}
+ # Older Go versions may be keg-only and thus aren't linked into `PATH` by
+ # default. We need to override this mechanism to force this specific Go
+ # version to become active.
+ - brew link --force go@${GO_VERSION}
- sw_vers
- go version
- pg_ctl --version
@@ -304,7 +310,6 @@ test:macos:
- pg_ctl -D /usr/local/var/postgres start > /tmp/postgres.log
- pg_ctl status
- createdb -U $PGUSER $POSTGRES_DB
- - brew install cmake
- make -j$(nproc) build prepare-tests
- make test-go
- *test_after_script