blob: 05097b8bb5fd9c2e1ebc4b2d18a2bc2c9c60c1fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
build:
stage: build
image: debian:bullseye
cache:
paths:
- .cache
before_script:
- apt-get update
- apt-get install -y git libolm-dev golang-go
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
- go build -o gomuks_linux_amd64
artifacts:
paths:
- gomuks_linux_amd64
build_static:
stage: build
image: golang:alpine
cache:
paths:
- .cache
before_script:
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
variables:
CGO_ENABLED: "0"
script:
- GOOS=linux GOARCH=amd64 go build -o gomuks_linux_amd64
- GOOS=linux GOARCH=386 go build -o gomuks_linux_386
- GOOS=linux GOARCH=arm go build -o gomuks_linux_arm
- GOOS=linux GOARCH=arm64 go build -o gomuks_linux_arm64
- GOOS=darwin GOARCH=amd64 go build -o gomuks_darwin_amd64
artifacts:
paths:
- gomuks_linux_amd64
- gomuks_linux_386
- gomuks_linux_arm
- gomuks_linux_arm64
- gomuks_darwin_amd64
|