9
9
- master
10
10
11
11
jobs :
12
- rustfmt :
13
- runs-on : ubuntu-latest
14
-
15
- steps :
16
- - uses : actions/checkout@v3
17
-
18
- - name : Install stable
19
- uses : actions-rs/toolchain@v1
20
- with :
21
- profile : minimal
22
- # TODO: Should ideally be stable, but we use some nightly-only
23
- # features.
24
- toolchain : nightly
25
- override : true
26
- components : rustfmt, clippy
27
-
28
- - name : Run rustfmt
29
- uses : actions-rs/cargo@v1
30
- with :
31
- command : fmt
32
- args : -- --check
33
-
34
- - name : Run clippy
35
- uses : actions-rs/cargo@v1
36
- with :
37
- command : clippy
38
- args : --tests
39
-
40
- msrv :
41
- runs-on : ubuntu-latest
42
- steps :
43
- - uses : actions/checkout@v3
44
-
45
- - name : Install msrv
46
- uses : actions-rs/toolchain@v1
47
- with :
48
- profile : minimal
49
- # MSRV below is documented in Cargo.toml and README.md, please update those if you
50
- # change this.
51
- toolchain : 1.57.0
52
- override : true
53
-
54
- - name : Build with msrv
55
- run : rm Cargo.lock && cargo +1.57.0 build --lib
56
-
57
- quickchecking :
58
- runs-on : ubuntu-latest
59
- steps :
60
- - uses : actions/checkout@v3
61
-
62
- - name : Install stable
63
- uses : actions-rs/toolchain@v1
64
- with :
65
- profile : minimal
66
- toolchain : stable
67
- override : true
68
-
69
- # TODO: Actually run quickchecks once `bindgen` is reliable enough.
70
- - name : Build quickcheck tests
71
- run : cd tests/quickchecking && cargo test
72
-
73
- test-expectations :
74
- runs-on : ${{matrix.os}}
75
- strategy :
76
- matrix :
77
- # TODO(#1954): These should be run on mac too, but turns out they're
78
- # broken.
79
- os : [ubuntu-latest, macos-latest]
80
- steps :
81
- - uses : actions/checkout@v3
82
-
83
- - name : Install stable
84
- uses : actions-rs/toolchain@v1
85
- with :
86
- profile : minimal
87
- toolchain : stable
88
- override : true
89
-
90
- - name : Test expectations
91
- run : cd tests/expectations && cargo test
92
-
93
12
test :
94
13
runs-on : ${{matrix.os}}
95
14
strategy :
@@ -99,48 +18,16 @@ jobs:
99
18
- debian : null
100
19
cross : null
101
20
rust : null
102
- llvm_version : ["5.0", " 9.0"]
21
+ llvm_version : ["9.0"]
103
22
main_tests : [1]
104
- release_build : [0, 1 ]
105
- no_default_features : [0, 1 ]
23
+ release_build : [0]
24
+ no_default_features : [0]
106
25
# FIXME: There are no pre-built static libclang libraries, so the
107
26
# `static` feature is not testable atm.
108
- feature_runtime : [0, 1 ]
27
+ feature_runtime : [0]
109
28
feature_extra_asserts : [0]
110
29
feature_testing_only_docs : [0]
111
30
112
- include :
113
- # Test with extra asserts + docs just with latest llvm versions to
114
- # prevent explosion
115
- - os : ubuntu-latest
116
- llvm_version : " 9.0"
117
- release_build : 0
118
- no_default_features : 0
119
- feature_extra_asserts : 1
120
- feature_testing_only_docs : 1
121
-
122
- # FIXME: Seems installing multiarch packages fails:
123
- #
124
- # https://github.com/rust-lang/rust-bindgen/pull/2037/checks?check_run_id=2441799333
125
- #
126
- # - os: ubuntu-latest
127
- # target:
128
- # debian: arm64
129
- # cross: aarch64-linux-gnu
130
- # rust: aarch64-unknown-linux-gnu
131
- # llvm_version: "9.0"
132
- # main_tests: 0
133
- # release_build: 0
134
- # feature_extra_asserts: 0
135
- # feature_testing_only_docs: 0
136
-
137
- # Ensure stuff works on macos too
138
- - os : macos-latest
139
- llvm_version : " 9.0"
140
- release_build : 0
141
- no_default_features : 0
142
- feature_extra_asserts : 0
143
- feature_testing_only_docs : 0
144
31
steps :
145
32
- uses : actions/checkout@v3
146
33
@@ -180,22 +67,3 @@ jobs:
180
67
BINDGEN_FEATURE_TESTING_ONLY_DOCS : ${{matrix.feature_testing_only_docs}}
181
68
BINDGEN_NO_DEFAULT_FEATURES : ${{matrix.no_default_features}}
182
69
run : ./ci/test.sh
183
-
184
- test-book :
185
- runs-on : ubuntu-latest
186
- steps :
187
- - uses : actions/checkout@v3
188
-
189
- - name : Install stable
190
- uses : actions-rs/toolchain@v1
191
- with :
192
- profile : minimal
193
- toolchain : stable
194
- override : true
195
-
196
- # NOTE(emilio): Change deploy-book as well if you change this.
197
- - name : Test book
198
- run : |
199
- curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar xz
200
- ./mdbook build book
201
- ./mdbook test book
0 commit comments