diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-28 01:08:49 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-28 01:08:49 +0300 |
commit | 111dd72d7bd5f0dd84e5bad6f959386dd9a2e9ff (patch) | |
tree | fae8aae33a080c6f61050aaffa8c79d865d8e573 | |
parent | 7d0d701c5014be43f993d34a52e122f41eedc18d (diff) |
Use debian testing for CI
-rw-r--r-- | .gitlab-ci.yml | 61 |
1 files changed, 6 insertions, 55 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b52047e..59fd29a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,65 +1,16 @@ -image: golang:alpine +image: debian:bullseye -variables: - CGO_ENABLED: "0" - -stages: -- modules -- build - -cache: - paths: - - .cache - -default: - before_script: - - apk add git - - mkdir -p .cache - - export GOPATH="$CI_PROJECT_DIR/.cache" - -modules: - stage: modules - script: - - go get - -.build: &build +build: stage: build cache: paths: - .cache + before_script: + - apt-get install -y git libolm-dev + - mkdir -p .cache + - export GOPATH="$CI_PROJECT_DIR/.cache" script: - - echo "Building... $GOPATH $CGO_ENABLED $GOOS $GOARCH" - go build -o gomuks artifacts: paths: - gomuks - -build_linux_amd64: - <<: *build - variables: - GOOS: linux - GOARCH: amd64 - -build_linux_386: - <<: *build - variables: - GOOS: linux - GOARCH: "386" - -build_linux_arm: - <<: *build - variables: - GOOS: linux - GOARCH: arm - -build_linux_arm64: - <<: *build - variables: - GOOS: linux - GOARCH: arm64 - -build_darwin_amd64: - <<: *build - variables: - GOOS: darwin - GOARCH: amd64 |