Skip to content

Commit

Permalink
feat(.github): Enable FirmwareCI for EDK2 OVMF builds
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris committed Oct 9, 2023
1 parent 5087a07 commit 8478451
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/firmware-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "EDK2 FirmwareCI Tests"

on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
paths-ignore:
- '**/*.bat'
- '**/*.md'
- '**/*.py'
- '**/*.rst'
- '**/*.sh'
- '**/*.txt'

jobs:
build:
runs-on: ubuntu-latest
outputs:
binaryArtifact: ${{ env.artifact }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: python3 software-properties-common apt-utils cryptsetup apt-transport-https sudo wget build-essential uuid-dev git lcov nasm acpica-tools virtualenv device-tree-compiler mono-devel python3-pip python3-venv locales gnupg ca-certificates
- name: Source edksetup
run: source edksetup.sh
- name: Build Base Tools
run: make -C BaseTools
- name: Build OVMF Package
run: source edksetup.sh && build -p OvmfPkg/OvmfPkgX64.dsc -b DEBUG -a X64 -t GCC5
- name: Upload Artifact to FirmwareCI
uses: docker://firmwareci/uploader:v1.1
with:
EMAIL: "[email protected]"
PASSWORD: ${{ secrets.PASSWORD }}

PROJECT_TOKEN: 01HBH16MXYT39WYEJ87BB12XNT
COMMIT_HASH: ${{ github.sha }}

BINARY_PATH: /home/runner/work/edk2/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd

PROTOCOL: local
API: https://api.firmwareci.9esec.dev:8444

0 comments on commit 8478451

Please sign in to comment.