kernel: add firecracker experiment recipe #13
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: Build | |
| on: | |
| push: | |
| branches: [trunk] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 240 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [x86_64, aarch64] | |
| flavor: [firecracker, cloud-hypervisor] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Build kernel | |
| run: ARCH=${{ matrix.arch }} FLAVOR=${{ matrix.flavor }} VERSION=v6.1 USE_DOCKER=1 ./build.sh | |
| - name: Verify artifact exists | |
| run: | | |
| set -euo pipefail | |
| ls -lah dist | |
| shopt -s nullglob | |
| files=(dist/*.tar.gz) | |
| if [ "${#files[@]}" -eq 0 ]; then | |
| echo "No artifact generated for arch=${{ matrix.arch }} flavor=${{ matrix.flavor }}" | |
| exit 1 | |
| fi | |
| echo "Artifact: ${files[0]}" | |
| - name: Upload kernel archive | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: kernel-${{ matrix.flavor }}-${{ matrix.arch }} | |
| path: dist/*.tar.gz | |
| if-no-files-found: error | |
| retention-days: 14 |