Skip to content

Commit

Permalink
Merge pull request #106 from sarutak/fix-ci-warning
Browse files Browse the repository at this point in the history
Modify workflow files to deal with warnings
  • Loading branch information
larrydewey authored Feb 22, 2024
2 parents 2196b80 + bd9c536 commit f017cdd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 43 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,51 @@ jobs:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
toolchain: 1.70.0
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

clippy-openssl:
name: cargo clippy openssl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
toolchain: 1.70.0
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --features=openssl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -Dwarnings
- run: cargo clippy --features=openssl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings

clippy-crypto_nossl:
name: cargo clippy crypto_nossl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
toolchain: 1.70.0
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --features=crypto_nossl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -Dwarnings
- run: cargo clippy --features=crypto_nossl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings

readme:
name: cargo readme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
profile: minimal
override: true
- run: cargo install cargo-readme
- run: cargo readme > README.md && git diff --exit-code

check-spdx-headers:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: enarx/spdx@master
with:
licenses: Apache-2.0
21 changes: 7 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ jobs:
name: sw openssl ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }} --features=${{ matrix.features }}
- run: cargo test ${{ matrix.profile.flag }} --features=${{ matrix.features }}

strategy:
fail-fast: false
matrix:
Expand All @@ -31,15 +28,11 @@ jobs:
name: sw crypto_nossl ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }} --features=${{ matrix.features }}
- run: cargo test ${{ matrix.profile.flag }} --features=${{ matrix.features }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit f017cdd

Please sign in to comment.