From 1de83caaf423fe892f18fdb75abe3aca9b3a4f00 Mon Sep 17 00:00:00 2001 From: Thomas Schneider <thomas@fsmpi.rwth-aachen.de> Date: Sun, 1 Aug 2021 23:50:45 +0200 Subject: [PATCH] Add GitLab CI config --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3e4e548 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +--- + +image: debian:buster + +variables: + GOCACHE: $CI_PROJECT_DIR/.gocache + GOPATH: $CI_PROJECT_DIR/.go + +cache: + paths: + - .gocache + - .go + +before_script: + - echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list + - apt-get update && apt-get -qq -y -t buster-backports install golang git + - go version + +build: + script: + - go build -o $CI_PROJECT_NAME-$GOOS-$GOARCH + artifacts: + paths: + - $CI_PROJECT_NAME-$GOOS-$GOARCH + parallel: + matrix: + - GOOS: + - linux + GOARCH: + - amd64 + - arm -- GitLab