Skip to content
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.

Commit

Permalink
ci: ci for deps/crypto
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 authored and jialez0 committed May 11, 2023
1 parent bb2c6a2 commit a72abf0
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/crypto.yml
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 }}

0 comments on commit a72abf0

Please sign in to comment.