gomuks/.gitlab-ci.yml

21 lines
546 B
YAML
Raw Normal View History

2020-04-28 00:08:49 +02:00
build:
2020-05-05 19:39:14 +02:00
stage: build
image: golang:alpine
cache:
paths:
- .cache
before_script:
2020-05-08 16:29:29 +02:00
- apk add --no-cache git build-base
2020-05-05 19:39:14 +02:00
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
2020-05-08 16:29:29 +02:00
- 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
2019-07-25 22:53:45 +02:00
artifacts:
paths:
2020-05-08 16:29:29 +02:00
- gomuks