Skip to content

Commit

Permalink
github actions with multiple rust versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichard committed Jul 6, 2023
1 parent de23c65 commit f29c17f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
44 changes: 37 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- feature/rust-1.69
pull_request: {}

env:
Expand All @@ -14,14 +15,43 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
rust:
- 1.69.0 # new release
- 1.63.0 # debian
- 1.57.0 # MSRV
features:
- ""
- default

steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
components: rustfmt, clippy
- name: Build
run: cargo build
run: cargo build --no-default-features --features ${{ matrix.features }}
- name: Run tests
run: cargo test
- name: Build without default features
run: cargo build --no-default-features
- name: Run tests without default features
run: cargo test --no-default-features
run: cargo test --no-default-features --features ${{ matrix.features }}
- name: Clippy
run: cargo clippy -- -D warnings

fmt:
name: Rust fmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy
- name: Check fmt
run: cargo fmt --all -- --check
2 changes: 1 addition & 1 deletion src/electrum_extended_priv_key.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::ElectrumExtendedKey;
use bitcoin::secp256k1;
use bitcoin::base58;
use bitcoin::bip32::{ChainCode, ChildNumber, ExtendedPrivKey, Fingerprint};
use bitcoin::secp256k1;
use bitcoin::Network;
use std::convert::TryInto;
use std::str::FromStr;
Expand Down
2 changes: 1 addition & 1 deletion src/electrum_extended_pub_key.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::ElectrumExtendedKey;
use bitcoin::secp256k1;
use bitcoin::base58;
use bitcoin::bip32::{ChainCode, ChildNumber, ExtendedPubKey, Fingerprint};
use bitcoin::secp256k1;
use bitcoin::Network;
use std::convert::TryInto;
use std::str::FromStr;
Expand Down

0 comments on commit f29c17f

Please sign in to comment.