Skip to content

Commit f513fd5

Browse files
committed
test
1 parent 8f27058 commit f513fd5

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

.github/workflows/compare.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Compare Kernel Config
22

33
on:
44
pull_request:
5+
types: [opened, reopened, synchronize]
6+
branches:
7+
- 'master'
58

69
jobs:
710
bump:
@@ -32,18 +35,33 @@ jobs:
3235
ref: linux
3336
path: pkg
3437
- run: >-
35-
docker run --rm
36-
-v ./pkg:/pkg -w /pkg
37-
ghcr.io/eweos/docker:master
38-
makepkg -o
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
38+
docker run
39+
--rm
40+
-v ./pkg:/pkg -w /pkg
41+
ghcr.io/eweos/docker:buildenv
42+
bash -c "pacman -Syu --noconfirm && set -euo pipefail && makepkg -os --noconfirm --noprepare"
43+
- run: >-
44+
docker run
45+
--rm
46+
-v $(pwd):/${{ github.workspace }}
47+
-w ${{ github.workspace }}
48+
ghcr.io/eweos/docker:buildenv
49+
bash -c "
50+
source pkg/PKGBUILD &&
51+
./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} \$(pwd)/pkg/\$_basename-\$pkgver
52+
cp pkg/\$_basename-\$pkgver/.config config-new
53+
"
54+
- run: >-
55+
docker run
56+
--rm
57+
-v $(pwd):/${{ github.workspace }}
58+
-w ${{ github.workspace }}
59+
ghcr.io/eweos/docker:buildenv
60+
bash -c "
61+
source pkg/PKGBUILD &&
62+
./repo-old/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} \$(pwd)/pkg/\$_basename-\$pkgver
63+
cp pkg/\$_basename-\$pkgver/.config config-old
64+
"
4765
- run: |
4866
diff -urN config-old config-new > config.diff
4967
- uses: actions/upload-artifact@v4

generic.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# branding
2-
CONFIG_LOGO=y
2+
CONFIG_LOGO=n
33

44
# boot
55
CONFIG_EFI_BOOTLOADER_CONTROL=y

0 commit comments

Comments
 (0)