Skip to content

Commit

Permalink
add option for building dev build
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Nov 8, 2024
1 parent 9e0c960 commit 8d54c81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Formula/risingwave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class Risingwave < Formula
sha256 cellar: :any, arm64_ventura: "66bae737f803b8c212713a1a82d29b8ba4175742a9ad49cdffda995a999822c5"
end

option "with-dev-profile", "Build with dev profile"

depends_on "cmake" => :build
depends_on "node@20" => :build
depends_on "protobuf" => :build
Expand Down Expand Up @@ -56,9 +58,13 @@ def install

# Will show "x.y.z (Homebrew)" in the version string.
ENV["GIT_SHA"] = "Homebrew"
ENV["GIT_SHA"] += ", dev" if build.with?("dev-profile")

# Use `dev` profile if `--with-dev-profile` is passed.
profile = build.with?("dev-profile") ? "dev" : "production"

system "cargo", "install",
"--profile", "production",
"--profile", profile,
"--bin", "risingwave",
"--features", "rw-static-link",
"--features", "all-udf",
Expand Down

0 comments on commit 8d54c81

Please sign in to comment.