ci script

This commit is contained in:
blek 2023-11-03 03:14:36 +10:00
parent f4b40637d4
commit 040db92caa
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
.DS_Store .DS_Store
bfile_cli bfile_cli*

16
ci.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
. ./package.env
GOOS=linux GOARCH=386 go build -o "bfile_cli.$VERSION.linux.i386" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=linux GOARCH=amd64 go build -o "bfile_cli.$VERSION.linux.amd64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=linux GOARCH=arm64 go build -o "bfile_cli.$VERSION.linux.arm64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=386 go build -o "bfile_cli.$VERSION.windows.i386.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=amd64 go build -o "bfile_cli.$VERSION.windows.amd64.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=arm64 go build -o "bfile_cli.$VERSION.windows.arm64.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=amd64 go build -o "bfile_cli.$VERSION.darwin.amd64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=arm64 go build -o "bfile_cli.$VERSION.darwin.arm64" -ldflags "-s -w -X main.version=$VERSION" . &
wait