This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xynnn007 <[email protected]>
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Crypto CI | ||
on: | ||
push: | ||
paths: | ||
- 'deps/crypto/**' | ||
- '.github/workflows/crypto.yml' | ||
pull_request: | ||
paths: | ||
- 'deps/crypto/**' | ||
- '.github/workflows/crypto.yml' | ||
create: | ||
paths: | ||
- 'deps/crypto/**' | ||
- '.github/workflows/crypto.yml' | ||
|
||
jobs: | ||
crypto_ci: | ||
if: github.event_name == 'pull_request' | ||
name: Check | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suites: | ||
- rust-crypto | ||
- openssl | ||
|
||
steps: | ||
- name: Code checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install Rust toolchain (stable) | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
components: rustfmt | ||
|
||
- name: Run rust fmt check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -p crypto -- --check | ||
|
||
- name: Run rust lint check (${{ matrix.suites }}) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now | ||
args: -p crypto --no-default-features --features ${{ matrix.suites }} -- -D warnings -A clippy::derive_partial_eq_without_eq | ||
|
||
- name: Run cargo test (${{ matrix.suites }}) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: -p crypto --no-default-features --features ${{ matrix.suites }} |