From eb97f0d665cdd79d5fb65dcc975e6c1f8adc1acb Mon Sep 17 00:00:00 2001 From: Zhiqiang Zhao Date: Fri, 11 Aug 2023 16:09:58 +0800 Subject: [PATCH] Create build.yml Signed-off-by: Zhao, Zhiqiang --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..a9e23c1e5f1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: build + +on: + push: + branches: [ "AddTestScript" ] + pull_request: + branches: [ "AddTestScript" ] + 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: build + run: | + cd + echo "===========!+++++Separator++++++!===========" + git branch + echo "===========!+++++Separator++++++!===========" + py -h + echo "===========!+++++Separator++++++!===========" + set PYTHON_HOME=C:\hostedtoolcache\windows\Python\3.11.4\x64 + echo %PYTHON_HOME% + echo "===========!+++++Separator++++++!===========" + nasm.exe -help + echo "===========!+++++Separator++++++!===========" + edksetup.bat Rebuild && build.bat -p DeviceSecurityTestPkg\DeviceSecurityTestPkg.dsc -t VS2019 -a X64 -b DEBUG -j build_DEBUG.log +