Skip to content

Commit

Permalink
risingwave 1.6.1 (risingwavelabs#27)
Browse files Browse the repository at this point in the history
make it a separate version

Signed-off-by: Bugen Zhao <[email protected]>

update to 1.7.0-single-node-2

Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Feb 8, 2024
1 parent 443238d commit a45898d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v3
with:
name: bottles
path: '*.bottle.*'
10 changes: 6 additions & 4 deletions Formula/risingwave.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
class Risingwave < Formula
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.6.0.tar.gz"
sha256 "ddd9fd3a3f8ef333dcc2474fb2732787408acbfddcdd3b81216a74056ee9db29"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.6.1.tar.gz"
sha256 "7a06fed4eb480572c16718c2c15f0938ad3a29e1bea15a568d673dcd02c428de"
license "Apache-2.0"
head "https://github.com/risingwavelabs/risingwave.git", branch: "main"

bottle do
root_url "https://github.com/risingwavelabs/homebrew-risingwave/releases/download/risingwave-1.6.0"
sha256 cellar: :any, arm64_ventura: "2541d374428a4a988666f85f5a21b4b3122ea619d914179c7c111b5b35b373e3"
root_url "https://github.com/risingwavelabs/homebrew-risingwave/releases/download/risingwave-1.6.1"
sha256 cellar: :any, arm64_ventura: "e6a85ee7b13bdf392be2c061b1ed635520c482583e440d6207ac51fae3206419"
sha256 cellar: :any, ventura: "80e09d56079de6d8b67d3f90e4ffa349fec40c114970f16d9d3da5423a6e9482"
sha256 cellar: :any, monterey: "e266368acc1eee8bc141e0638fb0a939af8779e24eaf1b346b95912e28d5e362"
end

depends_on "cmake" => :build
Expand Down
45 changes: 45 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
class RisingwaveAT17SingleNode < Formula
desc "Distributed SQL database for stream processing"
homepage "https://github.com/risingwavelabs/risingwave"
url "https://github.com/risingwavelabs/risingwave/archive/refs/tags/v1.7.0-single-node-2.tar.gz"
sha256 "b2bc8ecf645cece604f88b7fc4e927ea655f3d4dc68938e6021bbd3567e780ff"
license "Apache-2.0"
head "https://github.com/risingwavelabs/risingwave.git", branch: "main"

bottle do
root_url "https://github.com/risingwavelabs/homebrew-risingwave/releases/download/risingwave-1.6.0"
sha256 cellar: :any, arm64_ventura: "2541d374428a4a988666f85f5a21b4b3122ea619d914179c7c111b5b35b373e3"
end

depends_on "cmake" => :build
depends_on "llvm" => :build
depends_on "protobuf" => :build
depends_on "rustup-init" => :build
depends_on "openssl@3"
depends_on "xz"

def install
# this will install the necessary cargo/rustup toolchain bits in HOMEBREW_CACHE
system "#{Formula["rustup-init"].bin}/rustup-init",
"-qy", "--no-modify-path",
"--default-toolchain", "none"
ENV.prepend_path "PATH", HOMEBREW_CACHE/"cargo_cache/bin"

ENV.delete "RUSTFLAGS" # https://github.com/Homebrew/brew/pull/15544#issuecomment-1628639703
# Homebrew changes cxx flags, and CMake doesn't pick them up, so rdkafka-sys build fails.
# We cannot pass CMake flags (`std_cmake_args`) because it's in their build.rs.
#
# Some refs that might be useful:
# https://github.com/Homebrew/homebrew-core/pull/51949#issuecomment-601943075
# https://github.com/Homebrew/brew/pull/7134
ENV["SDKROOT"] = MacOS.sdk_path_if_needed
system "cargo", "install",
"--bin", "risingwave",
"--features", "rw-static-link",
*std_cargo_args(path: "src/cmd_all") # "--locked", "--root ...", "--path src/cmd_all"
end

test do
system "#{bin}/risingwave", "--help"
end
end

0 comments on commit a45898d

Please sign in to comment.