From 5245d3e3f236cef8cfdf264f0a125be22bea1867 Mon Sep 17 00:00:00 2001 From: Lonnie Liu Date: Sat, 12 Aug 2023 01:02:46 +0000 Subject: [PATCH] add release script --- .gitignore | 1 + release.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 release.sh diff --git a/.gitignore b/.gitignore index af4616e..f165fa7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /tags /.vscode +/_release .DS_Store __pycache__ diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..01509dd --- /dev/null +++ b/release.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +set -euxo pipefail + +mkdir -p _release +rm -f _release/* + +RAYCI_OS="$(go env GOOS)" +RAYCI_ARCH="$(go env GOARCH)" + +go build -trimpath -o "_release/rayci-${RAYCI_OS}-${RAYCI_ARCH}" . +go build -trimpath -o "_release/wanda-${RAYCI_OS}-${RAYCI_ARCH}" ./wanda/wanda