blob: 0d681d736ab23d731c963ea2984ef2e708b731b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
build:
stage: build
image: golang:alpine
cache:
paths:
- .cache
before_script:
- apk add --no-cache git build-base
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
- git clone https://gitlab.matrix.org/matrix-org/olm.git
- cd olm
- CFLAGS=-static-libgcc CPPFLAGS="-static-libgcc -static-libstdc++" make static
- cp build/libolm.a /usr/lib/ && cp -a include/olm/ /usr/include/
- cd ..
- go build -ldflags "-linkmode external -extldflags -static" -o gomuks
artifacts:
paths:
- gomuks
|