forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(.github): Enable FirmwareCI for EDK2 OVMF builds
Signed-off-by: Christian Walter <[email protected]>
- Loading branch information
1 parent
5087a07
commit 8478451
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |