Skip to content

Commit

Permalink
chore: Add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fengye87 committed Jul 6, 2022
1 parent 35915af commit 3858083
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: docker/setup-qemu-action@v2

- uses: docker/setup-buildx-action@v2

- uses: docker/build-push-action@v2
with:
file: Dockerfile
tags: builder
platforms: linux/arm64
load: true

- run: |
container_id=$(docker create --platform linux/arm64 builder)
docker cp $container_id:/workspace/edk2/Build/ArmVirtCloudHv-AARCH64/RELEASE_GCC5/FV/CLOUDHV_EFI.fd ./
docker rm -v $container_id
- uses: softprops/action-gh-release@v1
with:
files: CLOUDHV_EFI.fd
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu

WORKDIR /workspace

RUN apt-get update -y && \
apt-get install -y git ca-certificates make gcc linux-libc-dev m4 bison flex g++ uuid-dev python-is-python3 && \
rm -rf /var/lib/apt/lists/*

SHELL ["/bin/bash", "-c"]
RUN git clone --depth 1 https://github.com/tianocore/edk2.git -b master && \
cd edk2 && \
git submodule update --init && \
cd .. && \
git clone --depth 1 https://github.com/tianocore/edk2-platforms.git -b master && \
git clone --depth 1 https://github.com/acpica/acpica.git -b master && \
export PACKAGES_PATH="$PWD/edk2:$PWD/edk2-platforms" && \
export IASL_PREFIX="$PWD/acpica/generate/unix/bin/" && \
make -C acpica && \
cd edk2/ && \
. edksetup.sh && \
cd .. && \
make -C edk2/BaseTools && \
build -a AARCH64 -t GCC5 -p ArmVirtPkg/ArmVirtCloudHv.dsc -b RELEASE

0 comments on commit 3858083

Please sign in to comment.