1
1
on :
2
- push :
3
- branches : [ staging, trying, master ]
4
- pull_request :
2
+ push : # Run CI for all branches except GitHub merge queue tmp branches
3
+ branches-ignore :
4
+ - " gh-readonly-queue/**"
5
+ pull_request : # Run CI for PRs on any branch
6
+ merge_group : # Run CI for the GitHub merge queue
5
7
6
- name : CI
8
+ name : Build
7
9
8
10
env :
9
11
RUSTFLAGS : ' --deny warnings'
10
12
11
13
jobs :
12
- ci-linux :
13
- name : CI
14
+ build :
14
15
runs-on : ubuntu-latest
15
16
strategy :
16
17
matrix :
17
18
rust : [stable]
18
19
FEATURES : ["", "--features=async-tokio", "--features=mio-evented"]
19
20
TARGET :
20
21
- aarch64-unknown-linux-gnu
22
+ - aarch64-unknown-linux-musl
21
23
- arm-unknown-linux-gnueabi
24
+ - arm-unknown-linux-gnueabihf
22
25
- armv7-unknown-linux-gnueabihf
23
26
- i686-unknown-linux-gnu
24
27
- i686-unknown-linux-musl
25
- - mips-unknown-linux-gnu
26
- - mips64-unknown-linux-gnuabi64
27
- - mips64el-unknown-linux-gnuabi64
28
- - mipsel-unknown-linux-gnu
29
28
- powerpc-unknown-linux-gnu
30
- # - powerpc64-unknown-linux-gnu
29
+ - powerpc64-unknown-linux-gnu
31
30
- powerpc64le-unknown-linux-gnu
31
+ - riscv64gc-unknown-linux-gnu
32
32
- s390x-unknown-linux-gnu
33
33
- x86_64-unknown-linux-gnu
34
34
- x86_64-unknown-linux-musl
35
35
36
36
include :
37
37
# MSRV
38
- - rust : 1.46 .0
38
+ - rust : 1.65 .0
39
39
TARGET : x86_64-unknown-linux-gnu
40
40
41
41
# Test nightly but don't fail
@@ -58,37 +58,11 @@ jobs:
58
58
command : build
59
59
args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
60
60
61
- - name : Test
62
- uses : actions-rs/cargo@v1
63
- with :
64
- use-cross : true
65
- command : test
66
- args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
67
-
68
- ci-linux-msrv :
69
- name : CI
70
- runs-on : ubuntu-latest
71
- strategy :
72
- matrix :
73
- rust : [1.46.0]
74
- FEATURES : ["", "--features=async-tokio", "--features=mio-evented"]
75
- TARGET :
76
- - x86_64-unknown-linux-gnu
77
-
78
- steps :
79
- - uses : actions/checkout@v2
80
- - uses : actions-rs/toolchain@v1
81
- with :
82
- profile : minimal
83
- toolchain : ${{ matrix.rust }}
84
- target : ${{ matrix.TARGET }}
85
- override : true
86
-
87
- - name : Build
61
+ - name : Build all features
88
62
uses : actions-rs/cargo@v1
89
63
with :
90
64
command : build
91
- args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
65
+ args : --target=${{ matrix.TARGET }} --all-features
92
66
93
67
- name : Test
94
68
uses : actions-rs/cargo@v1
@@ -97,29 +71,12 @@ jobs:
97
71
command : test
98
72
args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
99
73
100
- ci-macos :
101
- name : CI
102
- runs-on : macos-11
103
-
104
- strategy :
105
- matrix :
106
- rust : [stable, 1.46.0]
107
- TARGET : [x86_64-apple-darwin]
108
-
109
- steps :
110
- - uses : actions/checkout@v2
111
-
112
- - uses : actions-rs/toolchain@v1
113
- with :
114
- profile : minimal
115
- toolchain : ${{ matrix.rust }}
116
- target : ${{ matrix.TARGET }}
117
- override : true
118
-
119
- - uses : actions-rs/cargo@v1
74
+ - name : Test all features
75
+ uses : actions-rs/cargo@v1
120
76
with :
121
- command : build
122
- args : --target=${{ matrix.TARGET }}
77
+ use-cross : true
78
+ command : test
79
+ args : --target=${{ matrix.TARGET }} --all-features
123
80
124
81
checks :
125
82
runs-on : ubuntu-latest
@@ -152,7 +109,7 @@ jobs:
152
109
- uses : actions-rs/toolchain@v1
153
110
with :
154
111
profile : minimal
155
- toolchain : 1.46 .0
112
+ toolchain : 1.65 .0
156
113
components : clippy
157
114
158
115
- uses : actions-rs/clippy-check@v1
0 commit comments