Explorar o código

Cache modules when building and include example config in artifacts

Tulir Asokan %!s(int64=6) %!d(string=hai) anos
pai
achega
1474288b82
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      .gitlab-ci.yml

+ 6 - 0
.gitlab-ci.yml

@@ -6,13 +6,19 @@ stages:
 build:
   image: golang:1-alpine
   stage: build
+  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
+    - example-config.yaml
 
 build docker:
   image: docker:stable