Skip to content

chore(bip0032): update docs and agents.md (#128) #179

chore(bip0032): update docs and agents.md (#128)

chore(bip0032): update docs and agents.md (#128) #179

Workflow file for this run

name: bip0039
on:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/bip0039.yml
- bip0039/**
defaults:
run:
working-directory: bip0039
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
TAPLO_CLI_VERSION: 0.10.0
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Cache taplo-cli
id: cache-taplo
uses: actions/cache@v5
with:
path: ~/.cargo/bin/taplo
key: ${{ runner.os }}-taplo-${{ env.TAPLO_CLI_VERSION }}
- name: Install taplo-cli if not cached
if: steps.cache-taplo.outputs.cache-hit != 'true'
shell: bash
run: cargo install taplo-cli@${TAPLO_CLI_VERSION} --locked
- name: Run taplo fmt
run: taplo fmt --check
- name: Run cargo fmt
run: cargo fmt --all -- --check
check-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- name: Run cargo clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
build-default-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- run: cargo build -p bip0039
build-no-default-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- run: cargo build -p bip0039 --no-default-features
build-all-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- run: cargo build -p bip0039 --all-features
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- name: Generate docs
run: cargo doc --no-deps -p bip0039 --lib --all-features
check-msrv:
runs-on: ubuntu-latest
env:
MSRV: 1.85.0
steps:
- uses: actions/checkout@v6
- name: Setup MSRV
run: rustup toolchain install ${MSRV} --no-self-update
- name: Check code
run: cargo +${MSRV} check --all-features
run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.os }}
- name: Run tests
run: cargo test --workspace --all-features
env:
RUST_BACKTRACE: 1