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
28
+ # - loongarch64-unknown-linux-gnu
29
29
- powerpc-unknown-linux-gnu
30
30
# - powerpc64-unknown-linux-gnu
31
31
- powerpc64le-unknown-linux-gnu
32
+ - riscv64gc-unknown-linux-gnu
32
33
- s390x-unknown-linux-gnu
33
34
- x86_64-unknown-linux-gnu
34
35
- x86_64-unknown-linux-musl
35
36
36
37
include :
37
38
# MSRV
38
- - rust : 1.46 .0
39
+ - rust : 1.65 .0
39
40
TARGET : x86_64-unknown-linux-gnu
40
41
41
42
# Test nightly but don't fail
@@ -58,37 +59,11 @@ jobs:
58
59
command : build
59
60
args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
60
61
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
62
+ - name : Build all features
88
63
uses : actions-rs/cargo@v1
89
64
with :
90
65
command : build
91
- args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
66
+ args : --target=${{ matrix.TARGET }} --all-features
92
67
93
68
- name : Test
94
69
uses : actions-rs/cargo@v1
@@ -97,29 +72,12 @@ jobs:
97
72
command : test
98
73
args : --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
99
74
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
75
+ - name : Test all features
76
+ uses : actions-rs/cargo@v1
120
77
with :
121
- command : build
122
- args : --target=${{ matrix.TARGET }}
78
+ use-cross : true
79
+ command : test
80
+ args : --target=${{ matrix.TARGET }} --all-features
123
81
124
82
checks :
125
83
runs-on : ubuntu-latest
@@ -152,7 +110,7 @@ jobs:
152
110
- uses : actions-rs/toolchain@v1
153
111
with :
154
112
profile : minimal
155
- toolchain : 1.46 .0
113
+ toolchain : 1.65 .0
156
114
components : clippy
157
115
158
116
- uses : actions-rs/clippy-check@v1
0 commit comments