mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 17:33:48 +01:00
Add static build to CI
This commit is contained in:
parent
f89fcf7212
commit
0a77e25cda
1 changed files with 19 additions and 1 deletions
|
@ -11,7 +11,7 @@ stages:
|
||||||
- .cache
|
- .cache
|
||||||
before_script:
|
before_script:
|
||||||
- echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
- echo "@edge_community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
||||||
- apk add git build-base olm-dev@edge_community
|
- apk add build-base olm-dev@edge_community
|
||||||
- mkdir -p .cache
|
- mkdir -p .cache
|
||||||
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
||||||
script:
|
script:
|
||||||
|
@ -32,6 +32,24 @@ stages:
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-$DOCKER_ARCH
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-$DOCKER_ARCH
|
||||||
- docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-$DOCKER_ARCH
|
- docker rmi $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA-$DOCKER_ARCH
|
||||||
|
|
||||||
|
build static amd64:
|
||||||
|
image: golang:1-alpine
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- amd64
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- .cache
|
||||||
|
before_script:
|
||||||
|
- mkdir -p .cache
|
||||||
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
||||||
|
script:
|
||||||
|
- CGO_ENABLED=0 go build -o mautrix-whatsapp
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- mautrix-whatsapp
|
||||||
|
- example-config.yaml
|
||||||
|
|
||||||
build amd64:
|
build amd64:
|
||||||
<<: *build
|
<<: *build
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Reference in a new issue