-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (70 loc) · 1.95 KB
/
ci.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
63
64
65
66
67
68
69
70
71
72
73
74
75
on:
push:
branches:
- main
pull_request:
name: Continuous integration
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
build_and_test_fedora_openssl_master:
name: "Tests on Fedora (OpenSSL master)"
runs-on: ubuntu-latest
container: fedora:rawhide
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
dnf install -y cargo rustc openssl-devel 'dnf-command(copr)'
dnf copr enable -y puiterwijk/openssl-master
dnf update -y openssl-libs openssl-devel
- name: Test
run: |
CAVP_REQUIRE_ALL=true CAVP_PRINT_SKIP=true cargo test --features "deny_custom" -- --nocapture
build_and_test_fedora:
name: "Tests on Fedora"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fedora_version:
# 35 has OpenSSL 1.1
- 35
# rawhide (36) has OpenSSL 3.0.0
- rawhide
features:
- "allow_custom"
- "deny_custom"
- "allow_custom,force_custom"
container:
image: "fedora:${{ matrix.fedora_version }}"
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: "dnf install -y cargo rustc openssl-devel"
- name: Test
run: |
CAVP_PRINT_SKIP=true cargo test --features "warn_custom,${{ matrix.features }}" -- --nocapture
build_and_test_ubuntu:
name: "Tests on Ubuntu"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: "--features allow_custom -- --nocapture"