Skip to content

Build custom FC for direct memory access #1

Build custom FC for direct memory access

Build custom FC for direct memory access #1

Workflow file for this run

name: Build Firecracker Versions
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.set-versions.outputs.versions }}
steps:
- uses: actions/checkout@v4
- name: Parse versions from file
id: set-versions
run: |
# Read versions, skip comments and empty lines, output as JSON array
versions=$(grep -v '^ *#' firecracker_versions.txt | grep -v '^$' | jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "versions=$versions" >> $GITHUB_OUTPUT
echo "Building versions: $versions"
build:
needs: prepare
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ${{ fromJson(needs.prepare.outputs.versions) }}
steps:
- uses: actions/checkout@v4
- name: Build Firecracker ${{ matrix.version }}
run: ./build.sh "${{ matrix.version }}"
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: firecracker-${{ matrix.version }}
path: builds/
retention-days: 30