Skip to content

Commit 57efc2e

Browse files
committed
ci: add kernel-sync check
This check compares torvalds/master `rust/pin-init` with this repo's `kernel` branch and fails if they are not in sync. Signed-off-by: Benno Lossin <benno.lossin@proton.me>
1 parent 817ee61 commit 57efc2e

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/kernel.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
permissions:
2+
contents: read
3+
on:
4+
push:
5+
branches: [kernel]
6+
schedule:
7+
- cron: '7 7 * * *'
8+
name: kernel
9+
jobs:
10+
sync:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
ref: kernel
15+
path: pin-init
16+
- uses: actions/checkout@v4
17+
repository: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
18+
ref: master
19+
path: kernel
20+
fetch-depth: 1
21+
- run: |
22+
cp -r kernel/rust/pin-init .
23+
git diff --quiet && git diff --cached --quiet && [ -z "$(git ls-files --others --exclude-standard)" ]

0 commit comments

Comments
 (0)