Skip to content

Commit

Permalink
ci: Add automated building of OVMF
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Bradford <[email protected]>
  • Loading branch information
rbradford committed Dec 6, 2021
1 parent 003998b commit 40fbc7e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Cloud Hypervisor edk2 release
on: [create,push]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install uuid-dev nasm iasl build-essential python3-distutils git libbrotli-dev
- name: Init submodules
run: git submodule update --init
- name: Build OVMF
run: OvmfPkg/build.sh -a X64
- name: Create release
if: github.event_name == 'create' && github.event.ref_type == 'tag'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
- name: Upload OVMF.fd
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd
asset_name: OVMF.fd
asset_content_type: application/octet-stream









0 comments on commit 40fbc7e

Please sign in to comment.