Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into daniyar/refactor/bloc…
Browse files Browse the repository at this point in the history
…k-producer
  • Loading branch information
itegulov committed Jan 14, 2025
2 parents 4e45b2f + e4e9927 commit ac54482
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
]
include:
- arch: x86_64-unknown-linux-gnu
platform: ubuntu-20.04
platform: ubuntu-24.04
- arch: aarch64-unknown-linux-gnu
platform: ubuntu-20.04
platform: ubuntu-24.04
- arch: x86_64-apple-darwin
platform: macos-latest
- arch: aarch64-apple-darwin
Expand Down Expand Up @@ -77,7 +77,11 @@ jobs:
- name: Build anvil-zksync for ${{ matrix.arch }}
run: |
make build-${{ matrix.arch }}
if [[ "${{ matrix.arch }}" == *"linux"* ]]; then
make build-static-${{ matrix.arch }}
else
make build-${{ matrix.arch }}
fi
- name: Rename and move binary
run: |
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resolver = "2"
debug = 0

[workspace.package]
version = "0.2.2"
version = "0.2.3"
edition = "2021"
authors = ["The Matter Labs Team <hello@matterlabs.dev>"]
homepage = "https://zksync.io/"
Expand Down
12 changes: 6 additions & 6 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Cross.toml

[target.x86_64-unknown-linux-gnu]
image = "ubuntu:24.04"
pre-build = [
"export DEBIAN_FRONTEND=noninteractive",
"export TZ=Etc/UTC",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt update -q && apt upgrade -yq && apt install --assume-yes --no-install-recommends libclang-10-dev clang-10 cmake build-essential pkg-config libssl-dev:$CROSS_DEB_ARCH libsasl2-dev llvm-dev gnutls-bin",
"apt install -y gcc-10 g++-10",
"update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10",
"update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10"
"apt update -q && apt upgrade -yq",
"apt install --assume-yes --no-install-recommends libclang-14-dev clang-14 cmake build-essential pkg-config libssl-dev:$CROSS_DEB_ARCH libsasl2-dev llvm-14-dev gnutls-bin",
"apt install -y gcc-11 g++-11",
"update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11",
"update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11"
]

[target.aarch64-unknown-linux-gnu]
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ run: all
build-%:
cross build --bin anvil-zksync --target $* --release

# Build the Rust project for a specific target (static build).
build-static-%:
RUSTFLAGS='-C target-feature=+crt-static' OPENSSL_STATIC=1 cross build --bin anvil-zksync --target $* --release

# Build the Rust documentation
rust-doc:
cargo doc --no-deps --open
Expand Down

0 comments on commit ac54482

Please sign in to comment.