From e20a712dce12f09178947409fd3d18768fa16bca Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 25 Feb 2020 23:04:55 +0200 Subject: [PATCH] Fix arm64 builds --- .gitlab-ci.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c17cd9d..3f5a5e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: - build docker - manifest -build amd64: +build: image: golang:1-alpine stage: build tags: @@ -16,28 +16,11 @@ build amd64: - mkdir -p .cache - export GOPATH="$CI_PROJECT_DIR/.cache" script: - - go build -o mautrix-whatsapp + - GOARCH=amd64 go build -o mautrix-whatsapp-amd64 + - GOARCH=arm64 go build -o mautrix-whatsapp-arm64 artifacts: paths: - mautrix-whatsapp-amd64 - - example-config.yaml - -build arm64: - image: golang:1-alpine - stage: build - tags: - - arm64 - cache: - paths: - - .cache - before_script: - - apk add git build-base - - mkdir -p .cache - - export GOPATH="$CI_PROJECT_DIR/.cache" - script: - - go build -o mautrix-whatsapp - artifacts: - paths: - mautrix-whatsapp-arm64 - example-config.yaml