-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·44 lines (32 loc) · 1.04 KB
/
release.sh
File metadata and controls
executable file
·44 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
set -euxo pipefail
OUTPUT_DIR="_release"
rm -rf "$OUTPUT_DIR"
mkdir -p "$OUTPUT_DIR"
build_go() {
local name="$1"
local pkg="$2"
local os="$3"
local arch="$4"
# Disable CGO to build a statically-linked binary without C dependencies.
CGO_ENABLED=0 GOOS="$os" GOARCH="$arch" \
go build -trimpath -o "$OUTPUT_DIR/${name}-${os}-${arch}" "$pkg"
}
build_wheels() {
uv run wheels/raymake/build_wheels.py --output-dir "$OUTPUT_DIR"
}
build_raycilint() { build_go rayci-lint ./raycilint/raycilint "$1" "$2"; }
build_rayapp() { build_go rayapp ./rayapp/rayapp "$1" "$2"; }
build_rayci() { build_go rayci . "$1" "$2"; }
build_wanda() { build_go wanda ./wanda/wanda "$1" "$2"; }
build_raycilint darwin arm64
build_raycilint linux amd64
build_raycilint linux arm64
build_rayapp linux amd64
build_rayapp darwin arm64
build_rayci linux amd64
build_wanda darwin arm64
build_wanda linux amd64
build_wanda linux arm64
build_wanda windows amd64
build_wheels