File tree Expand file tree Collapse file tree 6 files changed +26
-21
lines changed Expand file tree Collapse file tree 6 files changed +26
-21
lines changed Original file line number Diff line number Diff line change 22
22
DOCKERHUB_SLUG : crazymax/xgo
23
23
GHCR_SLUG : ghcr.io/crazy-max/xgo
24
24
PLATFORMS : linux/amd64,linux/arm64
25
- LATEST_CURRENT : 1.21.5
26
- LATEST_PREVIOUS : 1.20.12
25
+ LATEST_CURRENT : 1.22.1
26
+ LATEST_PREVIOUS : 1.21.8
27
27
28
28
jobs :
29
29
prepare :
@@ -58,25 +58,17 @@ jobs:
58
58
fail-fast : false
59
59
matrix :
60
60
go_version :
61
- - 1.20.0
62
- - 1.20.1
63
- - 1.20.2
64
- - 1.20.3
65
- - 1.20.4
66
- - 1.20.5
67
- - 1.20.6
68
- - 1.20.7
69
- - 1.20.8
70
- - 1.20.9
71
- - 1.20.10
72
- - 1.20.11
73
- - 1.20.12
74
61
- 1.21.0
75
62
- 1.21.1
76
63
- 1.21.2
77
64
- 1.21.3
78
65
- 1.21.4
79
66
- 1.21.5
67
+ - 1.21.6
68
+ - 1.21.7
69
+ - 1.21.8
70
+ - 1.22.0
71
+ - 1.22.1
80
72
steps :
81
73
-
82
74
name : Checkout
Original file line number Diff line number Diff line change 24
24
fail-fast : false
25
25
matrix :
26
26
go_version :
27
- - 1.21.5
28
- - 1.20.12
27
+ - 1.22.1
28
+ - 1.21.8
29
29
case :
30
30
- c
31
31
- cpp
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
- ARG GO_VERSION="1.21.5 "
3
+ ARG GO_VERSION="1.22.1 "
4
4
ARG OSXCROSS_VERSION="11.3"
5
+ ARG GHQ_VERSION="1.6.1"
5
6
ARG XX_VERSION="1.3.0"
6
- ARG ALPINE_VERSION="3.18 "
7
+ ARG ALPINE_VERSION="3.19 "
7
8
ARG PLATFORMS="linux/386 linux/amd64 linux/arm64 linux/arm/v5 linux/arm/v6 linux/arm/v7 linux/mips linux/mipsle linux/mips64 linux/mips64le linux/ppc64le linux/riscv64 linux/s390x windows/386 windows/amd64"
8
9
9
10
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
10
- FROM --platform=$BUILDPLATFORM golang:1.20 -alpine${ALPINE_VERSION} AS base
11
+ FROM --platform=$BUILDPLATFORM golang:1.22 -alpine${ALPINE_VERSION} AS base
11
12
COPY --from=xx / /
12
13
ENV CGO_ENABLED=0
13
14
RUN apk add --no-cache file git
14
15
WORKDIR /src
15
16
17
+ FROM base AS ghq
18
+ ARG GHQ_VERSION
19
+ RUN --mount=type=cache,target=/go/pkg/mod \
20
+ go install github.com/x-motemen/ghq@v${GHQ_VERSION}
21
+
16
22
FROM base AS version
17
23
RUN --mount=target=. \
18
24
echo $(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) | tee /tmp/.version
100
106
FROM crazymax/osxcross:${OSXCROSS_VERSION} AS osxcross
101
107
FROM goxx-base
102
108
COPY --from=build /usr/bin/xgo /usr/local/bin/xgo
109
+ COPY --from=ghq /go/bin/ghq /usr/local/bin/ghq
103
110
COPY --from=osxcross /osxcross /osxcross
104
111
105
112
ENV XGO_IN_XGO="1"
Original file line number Diff line number Diff line change 99
99
100
100
# Otherwise download the canonical import path (may fail, don't allow failures beyond)
101
101
echo " Fetching main repository $1 ..."
102
- GO111MODULE=off go get -v -d " $1 "
102
+ GHQ_ROOT= $GOPATH_ROOT ghq get " $1 "
103
103
set -e
104
104
105
105
cd " $GOPATH_ROOT /$1 "
Original file line number Diff line number Diff line change
1
+ module tests/c
2
+
3
+ go 1.21
Original file line number Diff line number Diff line change
1
+ module tests/cpp
2
+
3
+ go 1.21
You can’t perform that action at this time.
0 commit comments