From 40fbc7e24cc0be9cbc349a911fdd3f451068ad57 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 6 Dec 2021 17:16:57 +0000 Subject: [PATCH] ci: Add automated building of OVMF Signed-off-by: Rob Bradford --- .github/workflows/release.yaml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000000..d44d33cb1f8d --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 + + + + + + + + +