Skip to content

Commit

Permalink
fix: resolves #90 | fixes release executable and headers issue (#95)
Browse files Browse the repository at this point in the history
* fix: resolves #90
* Installs cross from source
* Adds req deps to cross.toml and cargo.toml
  • Loading branch information
dutterbutter authored Sep 6, 2023
1 parent dd88a7f commit 3041b7c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ jobs:
# ==============================
# Builds
# ==============================

- name: Install cross from source
run: |
cargo install --git https://github.com/cross-rs/cross cross --branch main
- name: Build era-test-node for ${{ matrix.arch }}
run: |
cargo install cross
make build-${{ matrix.arch }}
- name: Rename and move binary
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ zksync_types = { git = "https://github.com/matter-labs/zksync-era.git", rev = "a
zksync_utils = { git = "https://github.com/matter-labs/zksync-era.git", rev = "a98e454221da7d6ecad9b317cf44b0786e819659" }
zksync_state = { git = "https://github.com/matter-labs/zksync-era.git", rev = "a98e454221da7d6ecad9b317cf44b0786e819659" }
zksync_web3_decl = { git = "https://github.com/matter-labs/zksync-era.git", rev = "a98e454221da7d6ecad9b317cf44b0786e819659" }
openssl-sys = { version = "0.9", features = ["vendored"] }

anyhow = "1.0"
tokio = { version = "1", features = ["time", "rt"] }
Expand Down
7 changes: 5 additions & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Cross.toml

[build]
[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update && apt-get install --assume-yes apt-utils --no-install-recommends pkg-config libssl-dev libsasl2-dev llvm-dev libclang-6.0-dev clang-6.0"
"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"
]

0 comments on commit 3041b7c

Please sign in to comment.