This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
82 lines (77 loc) · 2.04 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
76
77
78
79
80
81
82
on: [push, pull_request]
name: Continuous integration
jobs:
tier_1:
name: Tier 1
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
toolchain:
- 1.46.0 # MSRV
- stable
- nightly
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Run build
run: cargo build
tier_2:
name: Tier 2
# Allowing to fail for a while, because building OpenSSL is a huge pain
continue-on-error: true
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- x86_64-unknown-freebsd
- x86_64-unknown-netbsd
# - x86_64-unknown-openbsd
# - x86_64-unknown-dragonfly
toolchain:
- 1.46.0 # MSRV
- stable
- nightly
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
target: ${{ matrix.target }}
- name: Run build
uses: actions-rs/cargo@v1
env:
PKG_CONFIG_ALLOW_CROSS: 1
with:
command: check
args: --target ${{ matrix.target }} --features vendored
use-cross: true
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings