Simple script and config (type-safe) for building custom Linux kernels for Firecracker MicroVMs
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Support building for multiple architectures and update output file naming

+5 -5
+4 -4
.github/workflows/ci.yml
··· 14 14 publish: 15 15 strategy: 16 16 matrix: 17 - os: [ubuntu-latest] 17 + os: [ubuntu-latest, ubuntu-latest-arm64] 18 18 runs-on: ${{ matrix.os }} 19 19 steps: 20 20 - uses: actions/checkout@v4 ··· 29 29 - name: Build 30 30 run: | 31 31 ./build.sh $TAG 32 - sha256sum linux-stable/vmlinux-${{ env.VERSION }} > linux-stable/vmlinux-${{ env.VERSION }}.sha256 32 + sha256sum linux-stable/vmlinux-${{ env.VERSION }}.$(uname -m) > linux-stable/vmlinux-${{ env.VERSION }}.$(uname -m).sha256 33 33 34 34 - name: Upload artifact 35 35 uses: softprops/action-gh-release@v2 36 36 with: 37 37 files: | 38 - linux-stable/vmlinux-${{ env.VERSION }} 39 - linux-stable/vmlinux-${{ env.VERSION }}.sha256 38 + linux-stable/vmlinux-${{ env.VERSION }}.$(uname -m) 39 + linux-stable/vmlinux-${{ env.VERSION }}.$(uname -m).sha256 40 40 env: 41 41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
build.sh
··· 29 29 VERSION=${1%.y} 30 30 VMLINUX=$(echo vmlinux-${VERSION}) 31 31 32 - mv vmlinux ${VMLINUX} 32 + mv vmlinux ${VMLINUX}.$(uname -m) 33 33 34 34 echo "${GREEN}vmlinux built successfully!${NO_COLOR}" 35 35 echo "You can find the vmlinux file in ${CYAN}$(pwd)/${VMLINUX}${NO_COLOR}"