Skip to content

Commit e658e1b

Browse files
committed
[TMP]
1 parent ed5df9d commit e658e1b

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/build-bottles.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ { id: macos-13, name: "ventura" } ]
18+
os: [ { id: macos-14, name: "sonoma" } ]
1919
# we don't bottle meta-formulas that contain only services
20-
formula: [tezos-smart-rollup-wasm-debugger]
20+
formula: [tezos-client]
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4

Formula/tezos-client.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class << self
1313

1414
version "v21.0-1"
1515

16-
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init cmake opam opam]
16+
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup cmake opam]
1717
build_dependencies.each do |dependency|
1818
depends_on dependency => :build
1919
end
@@ -30,7 +30,6 @@ class << self
3030

3131
def make_deps
3232
ENV.deparallelize
33-
ENV["CARGO_HOME"]="./.cargo"
3433
# Disable usage of instructions from the ADX extension to avoid incompatibility
3534
# with old CPUs, see https://gitlab.com/dannywillems/ocaml-bls12-381/-/merge_requests/135/
3635
ENV["BLST_PORTABLE"]="yes"
@@ -39,9 +38,10 @@ def make_deps
3938
ENV["LDFLAGS"] = "-L#{HOMEBREW_PREFIX}/lib"
4039
# Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer
4140
arch = RUBY_PLATFORM.include?("arm64") ? "arm64" : "x86_64"
42-
system "rustup-init", "--default-toolchain", "1.78.0", "-y"
41+
system "rustup", "install", "1.78.0"
4342
system "opam", "init", "--bare", "--debug", "--auto-setup", "--disable-sandboxing"
44-
system ["source .cargo/env", "make build-deps"].join(" && ")
43+
system "make build-deps"
44+
system "dune build -p octez-rust-deps"
4545
end
4646

4747
def install_template(dune_path, exec_path, name)

Formula/tezos-node.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class << self
1313

1414
version "v21.0-1"
1515

16-
build_dependencies = %w[pkg-config coreutils autoconf rsync wget rustup-init cmake opam]
16+
build_dependencies = %w[pkg-config coreutils autoconf rsync rustup wget cmake opam]
1717
build_dependencies.each do |dependency|
1818
depends_on dependency => :build
1919
end
@@ -39,9 +39,11 @@ def make_deps
3939
ENV["LDFLAGS"] = "-L#{HOMEBREW_PREFIX}/lib"
4040
# Here is the workaround to use opam 2.0.9 because Tezos is currently not compatible with opam 2.1.0 and newer
4141
arch = RUBY_PLATFORM.include?("arm64") ? "arm64" : "x86_64"
42-
system "rustup-init", "--default-toolchain", "1.78.0", "-y"
42+
system "sed -i \"s/cargo build/cargo build --quiet/\" src/rust_deps/build.sh"
4343
system "opam", "init", "--bare", "--debug", "--auto-setup", "--disable-sandboxing"
44-
system ["source .cargo/env", "make build-deps"].join(" && ")
44+
system "rustup install 1.78.0"
45+
system "make build-deps"
46+
system "opam exec -- dune build -p octez-rust-deps"
4547
end
4648

4749
def install_template(dune_path, exec_path, name)

Formula/tezos-smart-rollup-wasm-debugger.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def make_deps
4848
def install_template(dune_path, exec_path, name)
4949
bin.mkpath
5050
self.class.all_bins << name
51-
system ["source .cargo/env", "eval $(opam env)", "dune build #{dune_path}", "cp #{exec_path} #{name}"].join(" && ")
51+
system ["eval $(opam env)", "dune build #{dune_path}", "cp #{exec_path} #{name}"].join(" && ")
5252
bin.install name
5353
ln_sf "#{bin}/#{name}", "#{bin}/#{name.gsub("octez", "tezos")}"
5454
end

0 commit comments

Comments
 (0)