(Hopefully) fix building on tags only.

v0.1
Martin Dosch 3 years ago
parent e250408748
commit 79fbd30533

@ -34,60 +34,60 @@ format:
compile_amd64:
stage: build
script:
- env GOOS=linux GOARCH=amd64 go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
script:
- env GOOS=linux GOARCH=amd64 go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
artifacts:
paths:
- go-sendxmpp
compile_arm64:
stage: build
script:
- env GOOS=linux GOARCH=arm64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
script:
- env GOOS=linux GOARCH=arm64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
artifacts:
paths:
- go-sendxmpp
compile_386:
stage: build
script:
- env GOOS=linux GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
script:
- env GOOS=linux GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
artifacts:
paths:
- go-sendxmpp
compile_arm:
stage: build
script:
- env GOOS=linux GOARCH=arm go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
only:
- tags
script:
- env GOOS=linux GOARCH=arm go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp
artifacts:
paths:
- go-sendxmpp
compile_win386:
stage: build
script:
- env GOOS=windows GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
only:
- tags
script:
- env GOOS=windows GOARCH=386 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
artifacts:
paths:
- go-sendxmpp.exe
compile_win64:
stage: build
script:
- env GOOS=windows GOARCH=amd64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
only:
- tags
script:
- env GOOS=windows GOARCH=amd64 go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/go-sendxmpp.exe
artifacts:
paths:
- go-sendxmpp.exe

Loading…
Cancel
Save