Try a different build method

This commit is contained in:
Tyler 2017-09-11 21:22:21 -04:00
parent 5bb18cc458
commit 74d17b11be
1 changed files with 19 additions and 8 deletions

View File

@ -10,11 +10,6 @@ stages:
- build - build
- package - package
cache:
key: "PIPELINE-$CI_PIPELINE_ID"
paths:
- src/meow.tf/deb-simple/vendor
glide-install: glide-install:
stage: init stage: init
script: script:
@ -22,27 +17,38 @@ glide-install:
- glide install - glide install
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
- mkdir -p build/i386 build/amd64 build/armv7 - mkdir -p build/i386 build/amd64 build/armv7
cache:
key: "pipeline-$CI_PIPELINE_ID"
paths:
- src/meow.tf/deb-simple/vendor
build-i386: build-i386:
stage: build stage: build
script: script:
- mkdir -p build/i386 - mkdir -p build/i386
- go build -o build/amd64/deb-simple
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple - GOOS=linux GOARCH=386 go build -o build/i386/deb-simple
artifacts: artifacts:
paths: paths:
- build - build
cache:
key: "pipeline-$CI_PIPELINE_ID"
policy: pull
paths:
- src/meow.tf/deb-simple/vendor
build-amd64: build-amd64:
stage: build stage: build
script: script:
- mkdir -p build/amd64 - mkdir -p build/amd64
- go build -o build/amd64/deb-simple - go build -o build/amd64/deb-simple
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple
artifacts: artifacts:
paths: paths:
- build - build
cache:
key: "pipeline-$CI_PIPELINE_ID"
policy: pull
paths:
- src/meow.tf/deb-simple/vendor
build-armv7: build-armv7:
stage: build stage: build
@ -52,6 +58,11 @@ build-armv7:
artifacts: artifacts:
paths: paths:
- build - build
cache:
key: "pipeline-$CI_PIPELINE_ID"
policy: pull
paths:
- src/meow.tf/deb-simple/vendor
package-i386: package-i386:
stage: package stage: package