Skip to content

Commit 06fc983

Browse files
committed
add workflow to compare config
1 parent 09a0aa9 commit 06fc983

1 file changed

Lines changed: 78 additions & 0 deletions

File tree

.github/workflows/compare.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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+
docker: amd64
15+
- arch: aarch64
16+
karch: arm64
17+
docker: arm64
18+
- arch: riscv64
19+
karch: riscv
20+
docker: riscv64
21+
- arch: loongarch64
22+
karch: loongarch
23+
docker: loong64
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
path: repo
29+
- uses: actions/checkout@v4
30+
with:
31+
ref: master
32+
path: repo-old
33+
- uses: actions/checkout@v4
34+
with:
35+
repository: eweOS/packages
36+
ref: linux
37+
path: pkg
38+
- uses: docker/setup-qemu-action@v1
39+
with:
40+
platforms: ${{ matrix.arch }}
41+
image: "tonistiigi/binfmt:qemu-v8.1.5"
42+
- run: >-
43+
docker run
44+
--rm
45+
-v ./pkg:/pkg -w /pkg
46+
--platform linux/${{ matrix.docker }}
47+
ghcr.io/eweos/docker:buildenv
48+
bash -c "pacman -Syu --noconfirm && set -euo pipefail && makepkg -os --noconfirm --noprepare"
49+
- run: >-
50+
docker run
51+
--rm
52+
-v $(pwd):/${{ github.workspace }}
53+
-w ${{ github.workspace }}
54+
--platform linux/${{ matrix.docker }}
55+
ghcr.io/eweos/docker:buildenv
56+
bash -c "
57+
source pkg/PKGBUILD &&
58+
./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo
59+
cp pkg/$_basename-$pkgver/.config config-new
60+
"
61+
- run: >-
62+
docker run
63+
--rm
64+
-v $(pwd):/${{ github.workspace }}
65+
-w ${{ github.workspace }}
66+
--platform linux/${{ matrix.docker }}
67+
ghcr.io/eweos/docker:buildenv
68+
bash -c "
69+
source pkg/PKGBUILD &&
70+
./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo-old
71+
cp pkg/$_basename-$pkgver/.config config-new
72+
"
73+
- run: |
74+
diff -urN config-old config-new > config.diff
75+
- uses: actions/upload-artifact@v4
76+
with:
77+
name: diff-${{ matrix.arch }}
78+
path: config.diff

0 commit comments

Comments
 (0)