Skip to content

Commit 672b9b1

Browse files
committed
test
1 parent 8f27058 commit 672b9b1

File tree

2 files changed

+39
-13
lines changed

2 files changed

+39
-13
lines changed

.github/workflows/compare.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ jobs:
1111
include:
1212
- arch: x86_64
1313
karch: x86
14+
docker: amd64
1415
- arch: aarch64
1516
karch: arm64
17+
docker: arm64
1618
- arch: riscv64
1719
karch: riscv
20+
docker: riscv64
1821
- arch: loongarch64
1922
karch: loongarch
23+
docker: loong64
2024
runs-on: ubuntu-latest
2125
steps:
2226
- uses: actions/checkout@v4
@@ -31,19 +35,41 @@ jobs:
3135
repository: eweOS/packages
3236
ref: linux
3337
path: pkg
38+
- uses: docker/setup-qemu-action@v1
39+
with:
40+
platforms: ${{ matrix.arch }}
41+
image: "tonistiigi/binfmt:qemu-v8.1.5"
3442
- 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
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+
"
4773
- run: |
4874
diff -urN config-old config-new > config.diff
4975
- 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)