From 7a18a813e17406af7f84b9011d7d255db7fa53c4 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Wed, 14 Sep 2022 12:56:24 -0700 Subject: [PATCH] Make CI/CD upload artifacts --- .gitlab-ci.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33e0310c..ebf7d881 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,14 @@ image: docker-registry.xx.network/elixxir/sysadmin/backend-ci:go1.17-wasm build: - stage: build - script: - - GOOS=js GOARCH=wasm go build -o xxdk.wasm - artifacts: - paths: - - xxdk.wasm + stage: build + script: + - go mod vendor -v + - mkdir -p release + - GOOS=js GOARCH=wasm go build -ldflags '-w -s' -o release/xxdk.wasm ./... + artifacts: + paths: + - release/ #native-test: # stage: test @@ -14,7 +16,7 @@ build: # - go test ./... wasm-test: - stage: test - script: - - export PATH=/root/go/bin:$PATH - - GOOS=js GOARCH=wasm go test ./... + stage: test + script: + - export PATH=/root/go/bin:$PATH + - GOOS=js GOARCH=wasm go test ./... -- GitLab