added build for normal gcc
updated musl output path
This commit is contained in:
parent
e302510bcd
commit
6e0a2c17e4
@ -13,18 +13,18 @@ steps:
|
||||
- apt-get update && apt-get install musl -y --no-install-recommends musl musl-dev musl-tools
|
||||
- go get ./...
|
||||
- go vet ./...
|
||||
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
||||
- go test -cover ./...
|
||||
- build/build-gcc.sh
|
||||
- build/build-musl.sh
|
||||
- go test -cover ./...
|
||||
when:
|
||||
branch: master
|
||||
|
||||
- name: buildrelease
|
||||
image: golang
|
||||
commands:
|
||||
- apt-get update && apt-get install musl -y --no-install-recommends musl
|
||||
- apt-get update && apt-get install musl -y --no-install-recommends musl musl-dev musl-tools
|
||||
- go get ./...
|
||||
- go test -cover ./...
|
||||
- build/build-gcc.sh
|
||||
- build/build-musl.sh
|
||||
when:
|
||||
event: tag
|
2
build/build-gcc.sh
Executable file
2
build/build-gcc.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
CC=musl-gcc go build --ldflags '-linkmode external -extldflags "-static"' ./cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
||||
CC=musl-gcc go build -o dist/PiwigoDirectoryUploaderMusl --ldflags '-linkmode external -extldflags "-static"' ./cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
Loading…
Reference in New Issue
Block a user