[ci] Remove actions-rs, cleanup names

This commit is contained in:
Steve Myers 2020-11-16 15:37:26 -08:00
parent a30ad49f63
commit 13c1170304
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
3 changed files with 56 additions and 79 deletions

View File

@ -7,22 +7,20 @@ jobs:
name: Tarpaulin to codecov.io name: Tarpaulin to codecov.io
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: toolchain - name: Set default toolchain
uses: actions-rs/toolchain@v1 run: rustup default nightly
with: - name: Set profile
toolchain: nightly run: rustup set profile minimal
override: true
- name: tarpaulin - name: Install tarpaulin
uses: actions-rs/tarpaulin@v0.1.2 run: cargo install cargo-tarpaulin
with: - name: Tarpaulin
version: '0.15.0' run: cargo tarpaulin --features all-keys,cli-utils,compiler,esplora,compact_filters --run-types Tests,Doctests --exclude-files "testutils/*"
args: --features all-keys,cli-utils,compiler,esplora,compact_filters --run-types Tests,Doctests --exclude-files "testutils/*"
- name: codecov.io - name: Publish to codecov.io
uses: codecov/codecov-action@v1.0.14 uses: codecov/codecov-action@v1.0.14
with: with:
token: ${{secrets.CODECOV_TOKEN}} token: ${{secrets.CODECOV_TOKEN}}

View File

@ -1,11 +1,11 @@
on: [push, pull_request] on: [push, pull_request]
name: Continuous integration name: CI
jobs: jobs:
build-test: build-test:
name: Build and Test name: Build and test
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -40,33 +40,23 @@ jobs:
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: toolchain - name: Set default toolchain
uses: actions-rs/toolchain@v1 run: rustup default ${{ matrix.rust }}
with: - name: Set profile
profile: minimal run: rustup set profile minimal
toolchain: ${{ matrix.rust }} - name: Add clippy
override: true run: rustup component add clippy
components: clippy - name: Build
- name: build run: cargo build --features ${{ matrix.features }} --no-default-features
uses: actions-rs/cargo@v1 - name: Clippy
with:
command: build
args: --features ${{ matrix.features }} --no-default-features
- name: clippy
if: ${{ matrix.rust == 'stable' && matrix.clippy != 'skip' }} if: ${{ matrix.rust == 'stable' && matrix.clippy != 'skip' }}
uses: actions-rs/cargo@v1 run: cargo clippy -- -D warnings
with: - name: Test
command: clippy
args: -- -D warnings
- name: test
if: ${{ matrix.test != 'skip' }} if: ${{ matrix.test != 'skip' }}
uses: actions-rs/cargo@v1 run: cargo test --features ${{ matrix.features }} --no-default-features
with:
command: test
args: --features ${{ matrix.features }} --no-default-features
test-electrum: test-electrum:
name: Test Electrum name: Test electrum
runs-on: ubuntu-16.04 runs-on: ubuntu-16.04
container: bitcoindevkit/electrs container: bitcoindevkit/electrs
env: env:
@ -76,9 +66,9 @@ jobs:
MAGICAL_RPC_URL: 127.0.0.1:18443 MAGICAL_RPC_URL: 127.0.0.1:18443
MAGICAL_ELECTRUM_URL: tcp://127.0.0.1:60401 MAGICAL_ELECTRUM_URL: tcp://127.0.0.1:60401
steps: steps:
- name: checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -86,19 +76,16 @@ jobs:
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: toolchain - name: Install rustup
uses: actions-rs/toolchain@v1 run: curl https://sh.rustup.rs -sSf | sh -s -- -y
with: - name: Set default toolchain
profile: minimal run: $HOME/.cargo/bin/rustup default stable
toolchain: stable - name: Set profile
override: true run: $HOME/.cargo/bin/rustup set profile minimal
- name: start core - name: Start core
run: ./ci/start-core.sh run: ./ci/start-core.sh
- name: test - name: Test
uses: actions-rs/cargo@v1 run: $HOME/.cargo/bin/cargo test --features test-electrum --no-default-features
with:
command: test
args: --features test-electrum --no-default-features
check-wasm: check-wasm:
name: Check WASM name: Check WASM
@ -107,9 +94,9 @@ jobs:
CC: clang-10 CC: clang-10
CFLAGS: -I/usr/include CFLAGS: -I/usr/include
steps: steps:
- name: checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -122,34 +109,26 @@ jobs:
- run: sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main" || exit 1 - run: sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-10 main" || exit 1
- run: sudo apt-get update || exit 1 - run: sudo apt-get update || exit 1
- run: sudo apt-get install -y clang-10 libc6-dev-i386 || exit 1 - run: sudo apt-get install -y clang-10 libc6-dev-i386 || exit 1
- name: toolchain - name: Set default toolchain
uses: actions-rs/toolchain@v1 run: rustup default stable
with: - name: Set profile
profile: minimal run: rustup set profile minimal
toolchain: stable - name: Add target wasm32
target: wasm32-unknown-unknown run: rustup target add wasm32-unknown-unknown
override: true - name: Check
- name: check run: cargo check --target wasm32-unknown-unknown --features cli-utils,esplora --no-default-features
uses: actions-rs/cargo@v1
with:
command: check
args: --target wasm32-unknown-unknown --features cli-utils,esplora --no-default-features
fmt: fmt:
name: Rust fmt name: Rust fmt
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: toolchain - name: Set default toolchain
uses: actions-rs/toolchain@v1 run: rustup default stable
with: - name: Set profile
profile: minimal run: rustup set profile minimal
toolchain: stable - name: Add clippy
override: true run: rustup component add rustfmt
components: rustfmt - name: Check fmt
- name: fmt check run: cargo fmt --all -- --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

View File

@ -9,7 +9,7 @@
<p> <p>
<!-- <a href="https://crates.io/crates/magical"><img alt="Crate Info" src="https://img.shields.io/crates/v/magical.svg"/></a> --> <!-- <a href="https://crates.io/crates/magical"><img alt="Crate Info" src="https://img.shields.io/crates/v/magical.svg"/></a> -->
<a href="https://github.com/bitcoindevkit/bdk/actions?query=workflow%3A%22Continuous+integration%22"><img alt="Continuous integration Status" src="https://github.com/bitcoindevkit/bdk/workflows/Continuous%20integration/badge.svg"></a> <a href="https://github.com/bitcoindevkit/bdk/actions?query=workflow%3ACI"><img alt="CI Status" src="https://github.com/bitcoindevkit/bdk/workflows/CI/badge.svg"></a>
<a href="https://codecov.io/gh/bitcoindevkit/bdk"><img src="https://codecov.io/gh/bitcoindevkit/bdk/branch/master/graph/badge.svg"/></a> <a href="https://codecov.io/gh/bitcoindevkit/bdk"><img src="https://codecov.io/gh/bitcoindevkit/bdk/branch/master/graph/badge.svg"/></a>
<a href="https://bitcoindevkit.org/docs-rs/bdk"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-bdk-green"/></a> <a href="https://bitcoindevkit.org/docs-rs/bdk"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-bdk-green"/></a>
<a href="https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html"><img alt="Rustc Version 1.45+" src="https://img.shields.io/badge/rustc-1.45%2B-lightgrey.svg"/></a> <a href="https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html"><img alt="Rustc Version 1.45+" src="https://img.shields.io/badge/rustc-1.45%2B-lightgrey.svg"/></a>