Build custom FC for direct memory access #1
Workflow file for this run
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 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 |