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
|
- apt-get update && apt-get install musl -y --no-install-recommends musl musl-dev musl-tools
|
||||||
- go get ./...
|
- go get ./...
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
- build/build-gcc.sh
|
||||||
- go test -cover ./...
|
|
||||||
- build/build-musl.sh
|
- build/build-musl.sh
|
||||||
|
- go test -cover ./...
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
- name: buildrelease
|
- name: buildrelease
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
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 get ./...
|
||||||
- go test -cover ./...
|
- build/build-gcc.sh
|
||||||
- build/build-musl.sh
|
- build/build-musl.sh
|
||||||
when:
|
when:
|
||||||
event: tag
|
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
|
#!/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