Skip to content

Commit

Permalink
add bsc release
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Jun 6, 2024
1 parent 1d9422e commit 51c85b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
binary: reth
- command: op-build
binary: op-reth
- command: bsc-build
binary: bsc-reth
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -103,7 +105,7 @@ jobs:

draft-release:
name: draft release
needs: [build, extract-version]
needs: [ build, extract-version ]
runs-on: ubuntu-latest
env:
VERSION: ${{ needs.extract-version.outputs.VERSION }}
Expand Down
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ install-op: ## Build and install the op-reth binary under `~/.cargo/bin`.
.PHONY: install-bsc
install-bsc: ## Build and install the bsc-reth binary under `~/.cargo/bin`.
cargo install --path bin/reth --bin bsc-reth --force --locked \
--features "bsc,$(FEATURES)" \
--features "bsc $(FEATURES)" \
--profile "$(PROFILE)" \
$(CARGO_INSTALL_EXTRA_FLAGS)

Expand All @@ -72,6 +72,10 @@ build: ## Build the reth binary into `target` directory.
build-op: ## Build the op-reth binary into `target` directory.
cargo build --bin op-reth --features "optimism opbnb $(FEATURES)" --profile "$(PROFILE)"

.PHONY: build-bsc
build-bsc: ## Build the bsc-reth binary into `target` directory.
cargo build --bin bsc-reth --features "bsc $(FEATURES)" --profile "$(PROFILE)"

# Builds the reth binary natively.
build-native-%:
cargo build --bin reth --target $* --features "$(FEATURES)" --profile "$(PROFILE)"
Expand Down Expand Up @@ -103,9 +107,13 @@ build-aarch64-unknown-linux-gnu: export JEMALLOC_SYS_WITH_LG_PAGE=16
op-build-aarch64-unknown-linux-gnu: FEATURES := $(filter-out asm-keccak,$(FEATURES))
op-build-aarch64-unknown-linux-gnu: export JEMALLOC_SYS_WITH_LG_PAGE=16

bsc-build-aarch64-unknown-linux-gnu: FEATURES := $(filter-out asm-keccak,$(FEATURES))
bsc-build-aarch64-unknown-linux-gnu: export JEMALLOC_SYS_WITH_LG_PAGE=16

# No jemalloc on Windows
build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(FEATURES))
op-build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(FEATURES))
bsc-build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(FEATURES))

# Note: The additional rustc compiler flags are for intrinsics needed by MDBX.
# See: https://github.com/cross-rs/cross/wiki/FAQ#undefined-reference-with-build-std
Expand Down Expand Up @@ -135,6 +143,10 @@ op-build-x86_64-apple-darwin:
$(MAKE) op-build-native-x86_64-apple-darwin
op-build-aarch64-apple-darwin:
$(MAKE) op-build-native-aarch64-apple-darwin
bsc-build-x86_64-apple-darwin:
$(MAKE) bsc-build-native-x86_64-apple-darwin
bsc-build-aarch64-apple-darwin:
$(MAKE) bsc-build-native-aarch64-apple-darwin

# Create a `.tar.gz` containing a binary for a specific target.
define tarball_release_binary
Expand Down

0 comments on commit 51c85b5

Please sign in to comment.