forked from bitcoindevkit/bdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LLFourn is squashing these to get them all signed: Remove useless clippy allow ci: use clippy action [ci] remove check for features=default
- Loading branch information
1 parent
2fcf9c4
commit 352f95f
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,32 +10,25 @@ jobs: | |
strategy: | ||
matrix: | ||
rust: | ||
- version: 1.67.0 # STABLE | ||
- version: stable | ||
clippy: true | ||
- version: 1.57.0 # MSRV | ||
features: | ||
- --no-default-features | ||
- --all-features | ||
- --features=default | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: Generate cache key | ||
run: echo "${{ matrix.rust.version }} ${{ matrix.features }}" | tee .cache_key | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust.version }} | ||
override: true | ||
components: clippy | ||
profile: minimal | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- name: Build | ||
run: cargo build ${{ matrix.features }} | ||
- name: Clippy | ||
if: ${{ matrix.rust.clippy }} | ||
run: cargo clippy --all-targets ${{ matrix.features }} -- -D warnings | ||
- name: Test | ||
run: cargo test ${{ matrix.features }} | ||
|
||
|
@@ -56,7 +49,7 @@ jobs: | |
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: "1.65.0" | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
target: "wasm32-unknown-unknown" | ||
|
@@ -78,9 +71,27 @@ jobs: | |
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: "1.65.0" | ||
toolchain: stable | ||
override: true | ||
profile: minimal | ||
components: rustfmt | ||
- name: Check fmt | ||
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | ||
|
||
clippy_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
# we pin clippy instead of using "stable" so that our CI doesn't break | ||
# at each new cargo release | ||
toolchain: "1.67.0" | ||
components: clippy | ||
override: true | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features --all-targets -- -D warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters