Skip to content

Commit 1cce63b

Browse files
committed
Merge branch '9-ci-additional-go-versions' into 'dev'
CI update: additional go version(s) See merge request objectbox/objectbox-generator!8
2 parents 79dfee4 + 9e6b399 commit 1cce63b

3 files changed

Lines changed: 47 additions & 2 deletions

File tree

.gitlab-ci.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
# https://docs.gitlab.com/ce/ci/yaml/
22

3-
build:
3+
.build:
44
tags: [ x64, linux, docker ]
55
image:
6-
name: objectboxio/buildenv-generator-ubuntu:2024-02-22
6+
name: objectboxio/buildenv-generator-ubuntu:2024-02-26
77
pull_policy: [always, if-not-present]
8+
9+
# Available go versions in objectboxio/buildenv-generator-ubuntu:2024-02-26:
10+
#
11+
# Version | Location (GOROOT) | Notes
12+
# ------- | --------------------- | -------------------------------------------------
13+
# 1.18.1 | /usr/lib/go-1.18 | (Ubuntu 22.04 package)
14+
# 1.22.0 | /usr/local/go1.22 | Manual installed version (default first on PATH)
15+
# 1.19.13 | /root/sdk/go1.19.13 | Additional version installed via go install
16+
17+
#
18+
b:go1.18:
19+
extends: [ .build ]
20+
script:
21+
- export PATH=/usr/lib/go-1.18/bin:$PATH
22+
- make info
23+
- make
24+
- make test-depend
25+
- make test
26+
27+
b:go1.19:
28+
extends: [ .build ]
29+
script:
30+
- export PATH=/root/sdk/go1.19.13/bin:$PATH
31+
- make info
32+
- make
33+
- make test-depend
34+
- make test
35+
36+
b:go1.22:
37+
extends: [ .build ]
838
script:
39+
- make info
940
- make
1041
- make test-depend
1142
- make test

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ test-depend: depend ## Build test dependencies
3535
./third_party/flatcc/build.sh
3636
./third_party/objectbox-c/get-objectbox-c.sh
3737

38+
info:
39+
go version

ci/docker/Dockerfile.ubuntu

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ RUN apt-get update && \
33
apt-get install -y make cmake golang git curl ccache && \
44
apt-get clean && \
55
rm -rf /var/lib/apt/lists/*
6+
7+
# Installation of additional go versions from ubuntu's go1.18 via
8+
# go install golang.org/dl/go1.19.13@latest
9+
# fails with
10+
# [...]/version.go:537:38: undefined: signalsToIgnore
11+
# Thus, installation of a recent go version manually and add older versions afterwards
12+
13+
RUN curl -sS -L --fail https://go.dev/dl/go1.22.0.linux-amd64.tar.gz | tar xz -v --one-top-level=go1.22 --strip-components 1 -C /usr/local
14+
ENV PATH=/root/go/bin:/usr/local/go1.22/bin:$PATH
15+
16+
RUN go install golang.org/dl/go1.19.13@latest
17+
RUN go1.19.13 download

0 commit comments

Comments
 (0)