diff --git a/.github/workflows/build-bottles.yml b/.github/workflows/build-bottles.yml index f81403ca..6b43968b 100644 --- a/.github/workflows/build-bottles.yml +++ b/.github/workflows/build-bottles.yml @@ -17,7 +17,7 @@ jobs: matrix: os: [ { id: macos-13, name: "ventura" } ] # we don't bottle meta-formulas that contain only services - formula: [tezos-smart-rollup-wasm-debugger] + formula: [tezos-node] steps: - name: Checkout uses: actions/checkout@v4 diff --git a/Formula/tezos-node.rb b/Formula/tezos-node.rb index bf63cae9..ad6a8f1e 100644 --- a/Formula/tezos-node.rb +++ b/Formula/tezos-node.rb @@ -13,7 +13,7 @@ class << self version "v21.0-1" - build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init cmake opam] + build_dependencies = %w[pkg-config coreutils autoconf rsync rustup wget cmake opam] build_dependencies.each do |dependency| depends_on dependency => :build end @@ -39,9 +39,11 @@ def make_deps ENV["LDFLAGS"] = "-L#{HOMEBREW_PREFIX}/lib" # Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer arch = RUBY_PLATFORM.include?("arm64") ? "arm64" : "x86_64" - system "rustup-init", "--default-toolchain", "1.78.0", "-y" system "opam", "init", "--bare", "--debug", "--auto-setup", "--disable-sandboxing" - system ["source .cargo/env", "make build-deps"].join(" && ") + system "rustup install 1.78.0" + system "make build-deps" + system "sed -i 's|cargo build|cargo build --quiet|' src/rust_deps/build.sh" + system "opam exec -- dune build -p octez-rust-deps" end def install_template(dune_path, exec_path, name) diff --git a/Formula/tezos-smart-rollup-wasm-debugger.rb b/Formula/tezos-smart-rollup-wasm-debugger.rb index c0ca49ca..454e9f96 100644 --- a/Formula/tezos-smart-rollup-wasm-debugger.rb +++ b/Formula/tezos-smart-rollup-wasm-debugger.rb @@ -48,7 +48,7 @@ def make_deps def install_template(dune_path, exec_path, name) bin.mkpath self.class.all_bins << name - system ["source .cargo/env", "eval $(opam env)", "dune build #{dune_path}", "cp #{exec_path} #{name}"].join(" && ") + system ["eval $(opam env)", "dune build #{dune_path}", "cp #{exec_path} #{name}"].join(" && ") bin.install name ln_sf "#{bin}/#{name}", "#{bin}/#{name.gsub("octez", "tezos")}" end