From eced08d5a056493df9d5132bd8a5d9e6050bea78 Mon Sep 17 00:00:00 2001 From: "Zhao, Zhiqiang" Date: Thu, 17 Aug 2023 11:02:03 +0800 Subject: [PATCH] .github: Create build.yml Signed-off-by: Zhiqiang Zhao --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000000..256a4dbc989 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: build + +on: + push: + branches: [ "DeviceSecurity" ] + pull_request: + branches: [ "DeviceSecurity" ] + workflow_dispatch: + +jobs: + build: + + runs-on: windows-2019 + defaults: + run: + shell: cmd + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Set up NASM + uses: ilammy/setup-nasm@v1 + - name: Set up python + uses: actions/setup-python@v4 + id: cp380 + with: + python-version: '3.8.0' + update-environment: true + - name: build + run: | + echo "display current branch!" + git branch + echo "===========!+++++Separator++++++!===========" + echo "set and display PYTHON_HOME!" + set PYTHON_HOME=${{ Env.pythonLocation }} + echo %PYTHON_HOME% + echo "===========!+++++Separator++++++!===========" + echo "file name too long will lead to build fail, so shorten the full path by subst!" + subst z: %cd% + cd /d z:\ + echo "===========!+++++Separator++++++!===========" + echo "build EmulatorPkg and DeviceSecurityTestPkg!" + call edksetup.bat Rebuild + call build.bat -p EmulatorPkg\EmulatorPkg.dsc -t VS2019 -a X64 -b DEBUG -j build_DEBUG.log + call build.bat -p DeviceSecurityTestPkg\DeviceSecurityTestPkg.dsc -t VS2019 -a X64 -b DEBUG -j build_DEBUG.log \ No newline at end of file