|
| 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 | + - uses: docker/setup-qemu-action@v1 |
| 35 | + with: |
| 36 | + platforms: ${{ matrix.arch }} |
| 37 | + image: "tonistiigi/binfmt:qemu-v8.1.5" |
| 38 | + - run: >- |
| 39 | + docker run |
| 40 | + --rm |
| 41 | + -v ./pkg:/pkg -w /pkg |
| 42 | + --platform linux/${{ matrix.arch }} |
| 43 | + ghcr.io/eweos/docker:buildenv |
| 44 | + bash -c "pacman -Syu --noconfirm && set -euo pipefail && makepkg -os --noconfirm" |
| 45 | + - run: >- |
| 46 | + docker run |
| 47 | + --rm |
| 48 | + -v $(pwd):/${{ github.workspace }} |
| 49 | + -w ${{ github.workspace }} |
| 50 | + --platform linux/${{ matrix.arch }} |
| 51 | + ghcr.io/eweos/docker:buildenv |
| 52 | + bash -c " |
| 53 | + . pkg/PKGBUILD && |
| 54 | + ./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo |
| 55 | + cp pkg/$_basename-$pkgver/.config config-new |
| 56 | + " |
| 57 | + - run: >- |
| 58 | + docker run |
| 59 | + --rm |
| 60 | + -v $(pwd):/${{ github.workspace }} |
| 61 | + -w ${{ github.workspace }} |
| 62 | + --platform linux/${{ matrix.arch }} |
| 63 | + ghcr.io/eweos/docker:buildenv |
| 64 | + bash -c " |
| 65 | + . pkg/PKGBUILD && |
| 66 | + ./repo/scripts/generate-config.sh ${{ matrix.arch }} ${{ matrix.karch }} pkg/$_basename-$pkgver repo-old |
| 67 | + cp pkg/$_basename-$pkgver/.config config-new |
| 68 | + " |
| 69 | + - run: | |
| 70 | + diff -urN config-old config-new > config.diff |
| 71 | + - uses: actions/upload-artifact@v4 |
| 72 | + with: |
| 73 | + name: diff-${{ matrix.arch }} |
| 74 | + path: config.diff |
0 commit comments