Skip to content

Commit 781e4e2

Browse files
authored
Merge pull request #74 from Rust-for-Linux/dev/ci-fix
- ci: fix test workflow - ci: don't consider merge commits in the signed-off-by workflow - ci: run normal ci on schedule
2 parents 64df950 + e4b83e6 commit 781e4e2

File tree

3 files changed

+23
-36
lines changed

3 files changed

+23
-36
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
permissions:
22
contents: read
33
on:
4+
push:
5+
branches: [main, kernel, next]
46
pull_request:
57
workflow_dispatch:
8+
schedule:
9+
- cron: '7 7 * * *'
610

711
name: CI
812
jobs:
@@ -68,6 +72,9 @@ jobs:
6872
runs-on: ubuntu-latest
6973
steps:
7074
- uses: actions/checkout@v4
75+
with:
76+
fetch-depth: ${{github.event.pull_request.commits}}
77+
ref: ${{github.event.pull_request.head.sha}}
7178
- uses: dtolnay/rust-toolchain@nightly
7279
with:
7380
components: rust-src
@@ -206,7 +213,7 @@ jobs:
206213
fetch-depth: ${{github.event.pull_request.commits}}
207214
ref: ${{github.event.pull_request.head.sha}}
208215
- 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
210217
apply:
211218
runs-on: ubuntu-latest
212219
steps:
@@ -251,3 +258,15 @@ jobs:
251258
- run: git rebase --exec 'cargo doc --all-features --no-deps && linkchecker target/doc/*/*.html' --root
252259
env:
253260
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"

.github/workflows/scheduled.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/ring_buf.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ pub struct EvenU64 {
164164
}
165165

166166
impl EvenU64 {
167+
#[allow(clippy::manual_is_multiple_of)]
167168
pub fn new2(value: u64) -> impl Init<Self, Error> {
168169
try_init!(Self {
169170
info: "Hello world!".to_owned(),
@@ -174,6 +175,8 @@ impl EvenU64 {
174175
},
175176
}? Error)
176177
}
178+
179+
#[allow(clippy::manual_is_multiple_of)]
177180
pub fn new(value: u64) -> impl Init<Self, ()> {
178181
try_init!(Self {
179182
info: "Hello world!".to_owned(),

0 commit comments

Comments
 (0)