@@ -3,10 +3,10 @@ name: bindgen
33on :
44 push :
55 branches :
6- - master
6+ - main
77 pull_request :
88 branches :
9- - master
9+ - main
1010
1111jobs :
1212 rustfmt-clippy :
@@ -48,11 +48,45 @@ jobs:
4848 profile : minimal
4949 # MSRV below is documented in Cargo.toml and README.md, please update those if you
5050 # change this.
51- toolchain : 1.57 .0
51+ toolchain : 1.60 .0
5252 override : true
5353
5454 - name : Build with msrv
55- run : rm Cargo.lock && cargo +1.57.0 build --lib
55+ run : rm Cargo.lock && cargo +1.60.0 build --lib
56+
57+ minimal :
58+ runs-on : ubuntu-latest
59+ env :
60+ RUSTFLAGS : -D warnings
61+ steps :
62+ - uses : actions/checkout@v3
63+
64+ - name : Install stable
65+ uses : actions-rs/toolchain@v1
66+ with :
67+ profile : minimal
68+ toolchain : stable
69+ override : true
70+
71+ - name : Check without default features
72+ run : cargo check -p bindgen --no-default-features --features=runtime
73+
74+ docs :
75+ runs-on : ubuntu-latest
76+ env :
77+ RUSTDOCFLAGS : -D warnings
78+ steps :
79+ - uses : actions/checkout@v3
80+
81+ - name : Install stable
82+ uses : actions-rs/toolchain@v1
83+ with :
84+ profile : minimal
85+ toolchain : stable
86+ override : true
87+
88+ - name : Generate documentation
89+ run : cargo doc --document-private-items
5690
5791 quickchecking :
5892 runs-on : ubuntu-latest
@@ -107,7 +141,6 @@ jobs:
107141 # `static` feature is not testable atm.
108142 feature_runtime : [0, 1]
109143 feature_extra_asserts : [0]
110- feature_testing_only_docs : [0]
111144
112145 include :
113146 # Test with extra asserts + docs just with latest llvm versions to
@@ -117,7 +150,6 @@ jobs:
117150 release_build : 0
118151 no_default_features : 0
119152 feature_extra_asserts : 1
120- feature_testing_only_docs : 1
121153
122154 # FIXME: Seems installing multiarch packages fails:
123155 #
@@ -132,15 +164,13 @@ jobs:
132164 # main_tests: 0
133165 # release_build: 0
134166 # feature_extra_asserts: 0
135- # feature_testing_only_docs: 0
136167
137168 # Ensure stuff works on macos too
138169 - os : macos-latest
139170 llvm_version : " 9.0"
140171 release_build : 0
141172 no_default_features : 0
142173 feature_extra_asserts : 0
143- feature_testing_only_docs : 0
144174 steps :
145175 - uses : actions/checkout@v3
146176
@@ -166,7 +196,11 @@ jobs:
166196 toolchain : stable
167197 target : ${{matrix.target.rust}}
168198 override : true
169-
199+ - name : Install libtinfo
200+ if : matrix.os == 'ubuntu-latest'
201+ run : |
202+ sudo apt-get update
203+ sudo apt-get install libtinfo5
170204 - name : Run all the tests
171205 env :
172206 GITHUB_ACTIONS_OS : ${{matrix.os}}
@@ -177,7 +211,6 @@ jobs:
177211 BINDGEN_RELEASE_BUILD : ${{matrix.release_build}}
178212 BINDGEN_FEATURE_RUNTIME : ${{matrix.feature_runtime}}
179213 BINDGEN_FEATURE_EXTRA_ASSERTS : ${{matrix.feature_extra_asserts}}
180- BINDGEN_FEATURE_TESTING_ONLY_DOCS : ${{matrix.feature_testing_only_docs}}
181214 BINDGEN_NO_DEFAULT_FEATURES : ${{matrix.no_default_features}}
182215 run : ./ci/test.sh
183216
0 commit comments