Bump apple-containerization from 3897e57 to 0177505 (#18)
#42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: kernel-build | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| pull-requests: write | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| env: | |
| KVERSION: 6.14.9 | |
| KIMAGE: kernel-build:0.1 | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Apply patches | |
| run: | | |
| git apply --directory apple-containerization patches/0001-kernel-config.patch | |
| git apply --directory apple-containerization patches/0002-build-image.patch | |
| - name: Build the kernel builder Docker image | |
| run: | | |
| cd apple-containerization/kernel/ | |
| docker build --platform linux/arm64 image/ -f image/Dockerfile -t ${KIMAGE} | |
| - name: Download kernel sources | |
| run: | | |
| cd apple-containerization/kernel/ | |
| curl -SsL -o source.tar.xz https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${KVERSION}.tar.xz | |
| - name: Run kernel build | |
| run: | | |
| cd apple-containerization/kernel/ | |
| docker run \ | |
| --platform linux/arm64 \ | |
| --volume .:/kernel \ | |
| --workdir /kernel \ | |
| ${KIMAGE} \ | |
| /bin/bash -c "./build.sh" | |
| - name: Upload kernel build artifacts | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| retention-days: 30 | |
| name: kernel | |
| path: apple-containerization/kernel/vmlinux | |
| if-no-files-found: error | |
| - name: Add comment with kernel build info | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| message: | | |
| ## :package: Kernel Build Complete :package: | |
| The kernel has been successfully built! You can download the kernel image from the [Artifacts](../actions) section of this pull request. | |
| **Kernel Version:** `${{ env.KVERSION }}` | |
| **Build Status:** ✅ Successful |