chore: add build test for windows

This commit is contained in:
garethgeorge
2024-02-16 01:56:23 -08:00
parent 93828dcbe1
commit 6aaec5423e
14 changed files with 169 additions and 55 deletions
-18
View File
@@ -1,18 +0,0 @@
#! /bin/sh
(cd webui && npm i && npm run build)
for bin in backrest-*; do
rm -f $bin
done
find webui/dist -name '*.map' -exec rm ./{} \;
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o backrest-linux-amd64
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o backrest-linux-arm64
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o backrest-darwin-amd64
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o backrest-darwin-arm64
for bin in backrest-*; do
rice append --exec $bin
done
-7
View File
@@ -1,7 +0,0 @@
#! /bin/sh
set -x
(cd webui && npm i && npm run build)
rm -f backrest
go build .
rice append --exec backrest
-4
View File
@@ -1,4 +0,0 @@
#! /bin/sh
set -x
go install github.com/GeertJohan/go.rice/rice@latest
-4
View File
@@ -1,4 +0,0 @@
#! /bin/sh
set -x
DEBUG=1 go run .