-
Notifications
You must be signed in to change notification settings - Fork 108
59 lines (52 loc) · 1.57 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
name: ci
on: [push, pull_request]
env:
RUSTFLAGS: -D warnings
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
override: true
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
- run: vcpkg install openssl:x64-windows-static-md
- name: Run cargo check --all
run: cargo check --all
- name: Run the tests
run: cargo test --all
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser
- name: Run cargo doc
run: cargo doc --all --all-features
build:
strategy:
matrix:
os: [macOS-latest, ubuntu-latest]
toolchain: [stable, beta, nightly, stable 7 months ago]
exclude:
- os: macOS-latest
toolchain: beta
- os: macOS-latest
toolchain: nightly
- os: macOS-latest
toolchain: stable 7 months ago
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run cargo check --all
run: cargo check --all
- name: Run the tests
run: cargo test --all
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser
- name: Run cargo doc
run: cargo doc --all --all-features