Skip to content

Commit a8abcea

Browse files
committed
add a simple release script to build release bins
1 parent 572843b commit a8abcea

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/tags
22
/.vscode
3+
/_release
34
.DS_Store
45

56
__pycache__

release.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -euxo pipefail
4+
5+
mkdir -p _release
6+
rm -f _release/*
7+
8+
RAYCI_OS="$(go env GOOS)"
9+
RAYCI_ARCH="$(go env GOARCH)"
10+
11+
go build -trimpath -o "_release/rayci-${RAYCI_OS}-${RAYCI_ARCH}" .
12+
go build -trimpath -o "_release/wanda-${RAYCI_OS}-${RAYCI_ARCH}" ./wanda/wanda

0 commit comments

Comments
 (0)