Skip to content

Commit 171bbe0

Browse files
authored
[rayci] build release binaries for all supported platforms (#219)
`rayci` only supports linux amd64, `wanda` supports linux amd64, arm64 and windows amd64.
1 parent 2ec7831 commit 171bbe0

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.buildkite/release.rayci.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
group: release
22
steps:
3-
- name: hello-release
3+
# Use release queue to build rayci and wanda release binaries.
4+
# This makes sure that the release queue is working and also
5+
# builds the releases and save the binaries in build artifacts.
6+
- name: rayci and wanda binaries
47
instance_type: release
58
commands:
6-
- echo "Hello, Release!"
9+
- bash release.sh
10+
- cp _release/* /artifact-mount
711
depends_on: forge

release.sh

+18-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,22 @@ set -euxo pipefail
55
mkdir -p _release
66
rm -f _release/*
77

8-
RAYCI_OS="$(go env GOOS)"
9-
RAYCI_ARCH="$(go env GOARCH)"
8+
function build_rayci {
9+
RAYCI_OS="$1"
10+
RAYCI_ARCH="$2"
1011

11-
go build -trimpath -o "_release/rayci-${RAYCI_OS}-${RAYCI_ARCH}" .
12-
go build -trimpath -o "_release/wanda-${RAYCI_OS}-${RAYCI_ARCH}" ./wanda/wanda
12+
GOOS="$RAYCI_OS" GOARCH="$RAYCI_ARCH" go build -trimpath -o "_release/rayci-${RAYCI_OS}-${RAYCI_ARCH}" .
13+
}
14+
15+
function build_wanda {
16+
RAYCI_OS="$1"
17+
RAYCI_ARCH="$2"
18+
19+
GOOS="$RAYCI_OS" GOARCH="$RAYCI_ARCH" go build -trimpath -o "_release/wanda-${RAYCI_OS}-${RAYCI_ARCH}" ./wanda/wanda
20+
}
21+
22+
build_rayci linux amd64
23+
24+
build_wanda linux amd64
25+
build_wanda linux arm64
26+
build_wanda windows amd64

0 commit comments

Comments
 (0)