Add static build for other architectures (ref #187)
This commit is contained in:
parent
3d92a98891
commit
9526d61489
@ -32,7 +32,7 @@ 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:
|
build static:
|
||||||
image: golang:1-alpine
|
image: golang:1-alpine
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
@ -43,11 +43,19 @@ build static amd64:
|
|||||||
before_script:
|
before_script:
|
||||||
- mkdir -p .cache
|
- mkdir -p .cache
|
||||||
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
||||||
|
variables:
|
||||||
|
CGO_ENABLED: 0
|
||||||
script:
|
script:
|
||||||
- CGO_ENABLED=0 go build -o mautrix-whatsapp
|
- GOOS=linux GOARCH=amd64 go build -o mautrix-whatsapp_linux_amd64
|
||||||
|
- GOOS=linux GOARCH=arm64 go build -o mautrix-whatsapp_linux_arm64
|
||||||
|
- GOOS=linux GOARCH=arm go build -o mautrix-whatsapp_linux_arm
|
||||||
|
- GOOS=linux GOARCH=386 go build -o mautrix-whatsapp_linux_386
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- mautrix-whatsapp
|
- mautrix-whatsapp_linux_amd64
|
||||||
|
- mautrix-whatsapp_linux_arm64
|
||||||
|
- mautrix-whatsapp_linux_arm
|
||||||
|
- mautrix-whatsapp_linux_386
|
||||||
- example-config.yaml
|
- example-config.yaml
|
||||||
|
|
||||||
build amd64:
|
build amd64:
|
||||||
|
Loading…
Reference in New Issue
Block a user