File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments