Skip to content
Snippets Groups Projects
Commit ff8645ab authored by Thomas Schneider's avatar Thomas Schneider
Browse files

ci: Add arm64 build; build for v6 and v7 on arm

parent c40bb80b
Branches
Tags
No related merge requests found
Pipeline #3530 passed
......@@ -17,17 +17,21 @@ build:
before_script:
- go version
script:
- go build -o $CI_PROJECT_NAME-$GOOS-$GOARCH
- go build -o $CI_PROJECT_NAME-$GOOS-$GOARCH${GOARM:+v${GOARM}}
artifacts:
paths:
- $CI_PROJECT_NAME-$GOOS-$GOARCH
- $CI_PROJECT_NAME-$GOOS-$GOARCH${GOARM:+v${GOARM}}
parallel:
matrix:
- GOOS:
- linux
GOARCH:
- amd64
- arm
- GOOS: linux
GOARCH: amd64
- GOOS: linux
GOARCH: arm
GOARM:
- 6
- 7
- GOOS: linux
GOARCH: arm64
lint:
image: golangci/golangci-lint:v1.43-alpine
......@@ -59,6 +63,6 @@ upload:
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
script:
- >-
for file in ${CI_PROJECT_NAME}-linux-amd64 ${CI_PROJECT_NAME}-linux-arm; do
for file in ${CI_PROJECT_NAME}-*-* ; do
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${file} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_SHA}/${file} || exit $? ;
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment