mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 13:42:02 +08:00
Compile for multiple branch
This commit is contained in:
parent
8d33ce1d96
commit
e399045bc7
@ -3,14 +3,19 @@ language: go
|
|||||||
go:
|
go:
|
||||||
- 1.13
|
- 1.13
|
||||||
|
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
env: GO111MODULE=on
|
env: GO111MODULE=on
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sh scripts/build.sh
|
- sh scripts/build.sh $TRAVIS_CPU_ARCH
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_OAUTH_TOKEN
|
api_key: $GITHUB_OAUTH_TOKEN
|
||||||
|
name: $TRAVIS_TAG
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: builds/*
|
file: builds/*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
@ -2,21 +2,7 @@
|
|||||||
|
|
||||||
CGO_ENABLED=0
|
CGO_ENABLED=0
|
||||||
|
|
||||||
GOOS=linux
|
go build -x -v -ldflags "-s -w" -o builds/webp-server-linux-${1}
|
||||||
GOARCH=amd64
|
|
||||||
go build -x -v -ldflags "-s -w" -o builds/webp-server-linux-amd64
|
|
||||||
|
|
||||||
GOOS=linux
|
|
||||||
GOARCH=arm
|
|
||||||
go build -x -v -ldflags "-s -w" -o builds/webp-server-linux-arm
|
|
||||||
|
|
||||||
GOOS=darwin
|
|
||||||
GOARCH=amd64
|
|
||||||
go build -x -v -ldflags "-s -w" -o builds/webp-server-darwin-amd64
|
|
||||||
|
|
||||||
GOOS=windows
|
|
||||||
GOARCH=amd64
|
|
||||||
go build -x -v -ldflags "-s -w" -o builds/webp-server-windows-amd64.exe
|
|
||||||
|
|
||||||
echo "build done!"
|
echo "build done!"
|
||||||
ls builds
|
ls builds
|
Loading…
x
Reference in New Issue
Block a user