Commit 171bbe0 1 parent 2ec7831 commit 171bbe0 Copy full SHA for 171bbe0
File tree 2 files changed +24
-6
lines changed
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
group : release
2
2
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
4
7
instance_type : release
5
8
commands :
6
- - echo "Hello, Release!"
9
+ - bash release.sh
10
+ - cp _release/* /artifact-mount
7
11
depends_on : forge
Original file line number Diff line number Diff line change @@ -5,8 +5,22 @@ set -euxo pipefail
5
5
mkdir -p _release
6
6
rm -f _release/*
7
7
8
- RAYCI_OS=" $( go env GOOS) "
9
- RAYCI_ARCH=" $( go env GOARCH) "
8
+ function build_rayci {
9
+ RAYCI_OS=" $1 "
10
+ RAYCI_ARCH=" $2 "
10
11
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
You can’t perform that action at this time.
0 commit comments