File tree Expand file tree Collapse file tree 3 files changed +23
-36
lines changed Expand file tree Collapse file tree 3 files changed +23
-36
lines changed Original file line number Diff line number Diff line change 1
1
permissions :
2
2
contents : read
3
3
on :
4
+ push :
5
+ branches : [main, kernel, next]
4
6
pull_request :
5
7
workflow_dispatch :
8
+ schedule :
9
+ - cron : ' 7 7 * * *'
6
10
7
11
name : CI
8
12
jobs :
68
72
runs-on : ubuntu-latest
69
73
steps :
70
74
- uses : actions/checkout@v4
75
+ with :
76
+ fetch-depth : ${{github.event.pull_request.commits}}
77
+ ref : ${{github.event.pull_request.head.sha}}
71
78
- uses : dtolnay/rust-toolchain@nightly
72
79
with :
73
80
components : rust-src
@@ -206,7 +213,7 @@ jobs:
206
213
fetch-depth : ${{github.event.pull_request.commits}}
207
214
ref : ${{github.event.pull_request.head.sha}}
208
215
- run : git config user.name "github-runner" && git config user.email "<>"
209
- - run : git rebase --exec 'git log -1 --pretty=format:%B | grep -q "^Signed-off-by:"' --root
216
+ - run : git rebase --exec 'git log --no-merges - 1 --pretty=format:%B | grep -q "^Signed-off-by:"' --root
210
217
apply :
211
218
runs-on : ubuntu-latest
212
219
steps :
@@ -251,3 +258,15 @@ jobs:
251
258
- run : git rebase --exec 'cargo doc --all-features --no-deps && linkchecker target/doc/*/*.html' --root
252
259
env :
253
260
RUSTFLAGS : " -Dwarnings"
261
+ update :
262
+ runs-on : ubuntu-latest
263
+ steps :
264
+ - uses : actions/checkout@v4
265
+ - uses : dtolnay/rust-toolchain@nightly
266
+ with :
267
+ components : rust-src
268
+ - run : cargo install cargo-expand
269
+ - run : cargo update
270
+ - run : cargo test --locked
271
+ env :
272
+ RUSTFLAGS : " -Ddeprecated -Dwarnings"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ pub struct EvenU64 {
164
164
}
165
165
166
166
impl EvenU64 {
167
+ #[ allow( clippy:: manual_is_multiple_of) ]
167
168
pub fn new2 ( value : u64 ) -> impl Init < Self , Error > {
168
169
try_init ! ( Self {
169
170
info: "Hello world!" . to_owned( ) ,
@@ -174,6 +175,8 @@ impl EvenU64 {
174
175
} ,
175
176
} ? Error )
176
177
}
178
+
179
+ #[ allow( clippy:: manual_is_multiple_of) ]
177
180
pub fn new ( value : u64 ) -> impl Init < Self , ( ) > {
178
181
try_init ! ( Self {
179
182
info: "Hello world!" . to_owned( ) ,
You can’t perform that action at this time.
0 commit comments