Skip to content

Commit

Permalink
ci: switch to dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Oct 22, 2024
1 parent 9c49b18 commit f13335e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ jobs:
- name: Install lcov tools
run: sudo apt-get install lcov -y
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
components: llvm-tools-preview
profile: minimal
- name: Cache cargo
uses: actions/cache@v3
with:
Expand Down
30 changes: 6 additions & 24 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust.version }}
override: true
components: clippy
profile: minimal
- name: Pin dependencies for MSRV
if: matrix.rust.version == '1.63.0'
run: |
Expand Down Expand Up @@ -88,12 +86,9 @@ jobs:
target
key: ${{ runner.os }}-cargo-test-md-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
components: clippy
profile: minimal
- name: Test
run: cargo test --features bitcoin/std,miniscript/std,test-md-docs --no-default-features -- doctest::ReadmeDoctests

Expand Down Expand Up @@ -133,11 +128,7 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
uses: dtolnay/rust-toolchain@stable
- name: Test
run: cargo test --no-default-features --features bitcoin/std,miniscript/std,${{ matrix.blockchain.features }} ${{ matrix.blockchain.testprefix }}::bdk_blockchain_tests -- --test-threads=1

Expand All @@ -164,11 +155,7 @@ jobs:
- run: sudo apt-get update || exit 1
- run: sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
uses: dtolnay/rust-toolchain@stable
- name: Add target wasm32
run: rustup target add wasm32-unknown-unknown
- name: Check
Expand All @@ -181,12 +168,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
components: rustfmt
profile: minimal
- name: Check fmt
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check

Expand All @@ -211,11 +195,9 @@ jobs:
- name: Install python dependencies
run: pip install hwi==2.1.1 protobuf==3.20.1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust.version }}
override: true
profile: minimal
- name: Pin dependencies for MSRV
if: matrix.rust.version == '1.63.0'
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/nightly_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ jobs:
target
key: nightly-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
override: true
components: clippy
profile: minimal
- name: Build docs
run: cargo rustdoc --verbose --features=compiler,electrum,esplora,use-esplora-blocking,compact_filters,rpc,key-value-db,sqlite,all-keys,verify,hardware-signer -- --cfg docsrs -Dwarnings
- name: Upload artifact
Expand Down

0 comments on commit f13335e

Please sign in to comment.