Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Zhao, Zhiqiang <[email protected]>
  • Loading branch information
Zhiqiang520 committed Aug 15, 2023
1 parent 32af9b5 commit 1b86af3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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: Set up NASM
uses: actions/setup-python@v4
id: cp380
with:
python-version: '3.80'
update-environment: false
- name: build
run: |
cd
echo "===========!+++++Separator++++++!==========="
git branch
echo "===========!+++++Separator++++++!==========="
set PYTHON_HOME=${{ steps.cp380.outputs.pythonLocation }}
echo %PYTHON_HOME%
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++++++!==========="
#subst z: %cd% && cd /d z:\ && edksetup.bat Rebuild && build.bat -p DeviceSecurityTestPkg\DeviceSecurityTestPkg.dsc -t VS2019 -a X64 -b DEBUG -j build_DEBUG.log

0 comments on commit 1b86af3

Please sign in to comment.