Skip to content

Commit 461d215

Browse files
committed
add workflow to compare config
1 parent 09a0aa9 commit 461d215

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/compare.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Compare Kernel Config
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
bump:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- arch: x86_64
13+
karch: x86
14+
- arch: aarch64
15+
karch: arm64
16+
- arch: riscv64
17+
karch: riscv
18+
- arch: loongarch64
19+
karch: loongarch
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
path: repo
25+
- uses: actions/checkout@v4
26+
with:
27+
ref: master
28+
path: repo-old
29+
- uses: actions/checkout@v4
30+
with:
31+
repository: eweOS/packages
32+
ref: linux
33+
path: pkg
34+
- run: >-
35+
docker run --rm
36+
-v ./pkg:/pkg -w /pkg
37+
ghcr.io/eweos/docker:master
38+
bash -c "pacman -Sy && makepkg -os"
39+
- run: |
40+
. pkg/PKGBUILD
41+
./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo
42+
cp pkg/$_basename-$pkgver/.config config-new
43+
- run: |
44+
. pkg/PKGBUILD
45+
./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo-old
46+
cp pkg/$_basename-$pkgver/.config config-old
47+
- run: |
48+
diff -urN config-old config-new > config.diff
49+
- uses: actions/upload-artifact@v4
50+
with:
51+
name: diff-${{ matrix.arch }}
52+
path: config.diff

0 commit comments

Comments
 (0)