forked from confidential-containers/guest-components
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.58 KB
/
aa_crypto.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: attestation-agent crypto tests
on:
push:
branches:
- 'main'
paths:
- 'attestation-agent/deps/crypto/**'
- '.github/workflows/aa_crypto.yml'
pull_request:
paths:
- 'attestation-agent/deps/crypto/**'
- '.github/workflows/aa_crypto.yml'
create:
workflow_dispatch:
jobs:
crypto_ci:
name: Check
defaults:
run:
working-directory: ./attestation-agent
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
suites:
- rust-crypto
- openssl
steps:
- name: Code checkout
uses: actions/checkout@v3
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 }}