Skip to content

Commit

Permalink
Retire phoenixx and protonet runtimes. Add canary runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardo-xxnet committed Jun 6, 2022
1 parent f2007ae commit 4e156a0
Show file tree
Hide file tree
Showing 20 changed files with 335 additions and 7,243 deletions.
245 changes: 82 additions & 163 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ members = [
'primitives',
'rpc',
'runtime/common',
'runtime/phoenixx',
'runtime/protonet',
'runtime/canary',
'runtime/xxnetwork',
'swap',
'xx-betanet-rewards',
Expand Down
50 changes: 40 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,56 @@
build: build-dev
#######################
### xx network only ###
#######################

build-dev:
@cargo build --release --features phoenixx,protonet

build-prod:
# Builds xxnetwork-chain binary containing only xxnetwork runtime
build-release:
@cargo build -p xxnetwork-cli --release

build-phoenixx-runtime:
@srtool build --package phoenixx-runtime
# TODO: add build optimizations for production binary

#######################
### xx canary only ###
#######################

# Builds xxnetwork-chain binary containing only canary runtime
build-canary-release:
@cargo build -p xxnetwork-cli --release --no-default-features --features cli,canary

# TODO: add build optimizations for production binary

#######################
### both runtimes ###
#######################

build-protonet-runtime:
@srtool build --package protonet-runtime
# Build all packages
build:
@cargo build --release --features canary

# Builds xxnetwork-chain binary containing accelerated xxnetwork and canary runtime
build-dev:
@cargo build -p xxnetwork-cli --release --features canary,fast-runtime

#######################
### build runtimes ###
#######################

build-canary-runtime:
@srtool build --package canary-runtime

build-xxnetwork-runtime:
@srtool build --package xxnetwork-runtime

build-runtimes: build-phoenixx-runtime build-protonet-runtime build-xxnetwork-runtime
build-runtimes: build-canary-runtime build-xxnetwork-runtime


build-linux-from-mac:
@echo -e "Before proceeding make sure you check README\n"
@CC_x86_64_unknown_linux_gnu="x86_64-unknown-linux-gnu-gcc" CXX_x86_64_unknown_linux_gnu="x86_64-unknown-linux-gnu-g++" CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="x86_64-unknown-linux-gnu-gcc" cargo build --release --target=x86_64-unknown-linux-gnu

#######################
### tests ###
#######################

all-tests:
@echo "Running all unit tests\n"
@cargo test
Expand Down
Loading

0 comments on commit 4e156a0

Please sign in to comment.