Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F/btc-lc feature #100

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/local-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ jobs:
- uses: actions/[email protected]
- name: Build contracts, check formats, and run unit tests (full validation)
run: cargo test --lib --features full-validation
local-build-test-full-validation:
runs-on: ubuntu-latest
container:
image: rust:1.78.0
steps:
- uses: actions/[email protected]
- name: Build contracts, check formats, and run unit tests (BTC light client)
run: cargo test --lib --features btc-lc
15 changes: 13 additions & 2 deletions contracts/babylon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[package.metadata.optimizer]
default-build = true
builds = [
{ name = "btc-lc", features = [
"btc-lc",
], default-features = false }
]

[lib]
crate-type = ["cdylib", "rlib"]
# See https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
Expand All @@ -22,14 +30,16 @@ bench = false
test = false

[features]
# Add feature "cranelift" to default if you need 32 bit or ARM support
# Add feature "cranelift" to default if you need 32 bits or ARM support
default = []
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
# Use cranelift backend instead of singlepass. This is required for development on 32 bits or ARM machines.
cranelift = ["cosmwasm-vm/cranelift"]
# for quicker tests, cargo test --lib
library = []
# feature for enabling the full validation
full-validation = [ "btc-staking/full-validation" ]
# Feature for enabling the Bitcoin light client
btc-lc = []

[dependencies]
babylon-apis = { path = "../../packages/apis" }
Expand Down Expand Up @@ -69,3 +79,4 @@ thousands = { workspace = true }
[[bench]]
name = "main"
harness = false
required-features = ["btc-lc"]
Loading
Loading