Skip to content

Update rust-toolchain.toml #102

Update rust-toolchain.toml

Update rust-toolchain.toml #102

Workflow file for this run

name: electrs
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
build-args:
[
--locked --no-default-features,
--locked,
--locked --features metrics_process,
]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install Rust
run: rustup component add rustfmt clippy
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: cargo build ${{ matrix.build-args }} --all
- name: Test
run: cargo test ${{ matrix.build-args }} --all
- name: Clippy
run: cargo clippy -- -D warnings