Change bitcoin library to tapyrus #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
env: | |
RUST_LOG: tapyrusd=debug | |
NETWORK_ID: 1905960821 | |
PRIVATE_KEY: cUJN5RVzYWFoeY8rUztd47jzXCu1p57Ay8V7pqCzsBD3PEXN7Dd4 | |
GENESIS_BLOCK: 0100000000000000000000000000000000000000000000000000000000000000000000002b5331139c6bc8646bb4e5737c51378133f70b9712b75548cb3c05f9188670e7440d295e7300c5640730c4634402a3e66fb5d921f76b48d8972a484cc0361e66ef74f45e012103af80b90d25145da28c583359beb47b21796b2fe1a23c1511e443e7a64dfdb27d40e05f064662d6b9acf65ae416379d82e11a9b78cdeb3a316d1057cd2780e3727f70a61f901d10acbe349cd11e04aa6b4351e782c44670aefbe138e99a5ce75ace01010000000100000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0100f2052a010000001976a91445d405b9ed450fec89044f9b7a99a4ef6fe2cd3f88ac00000000 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04] | |
feature: | |
[ | |
"0_5_2", | |
"0_5_1", | |
] | |
steps: | |
- run: df -h | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.feature }}${{ matrix.os }} | |
- uses: dtolnay/rust-toolchain@stable | |
- run: cargo test --features ${{ matrix.feature }} | |
- run: echo "TAPYRUSD_EXE=$(find ./target/debug -name tapyrusd)" >> $GITHUB_ENV | |
- run: cargo test | |
cosmetics: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- run: cargo fmt -- --check | |
- run: cargo clippy -- -D warnings | |
rust-version: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: ["1.56.1", "stable", "nightly"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.version }}1 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: | | |
cargo update | |
cargo update -p tempfile --precise 3.3.0 | |
cargo update -p log --precise 0.4.18 | |
if: ${{ matrix.toolchain == '1.56.1' }} | |
- run: cargo build | |
build-nix: | |
runs-on: ubuntu-20.04 | |
env: | |
FNAME: tapyrus-core-0.5.2-x86_64-linux-gnu.tar.gz | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
- run: echo "TAPYRUSD_TARBALL_FILE=./${FNAME}" >> $GITHUB_ENV | |
- run: cargo build --features 0_5_2 && exit 1 || exit 0 | |
- run: wget https://github.com/chaintope/tapyrus-core/releases/download/v0.5.2/${FNAME} | |
- run: cargo build --features 0_5_2 |