forked from tianocore/edk2-staging
-
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.
Signed-off-by: Zhao, Zhiqiang <[email protected]>
- Loading branch information
1 parent
32af9b5
commit 541681e
Showing
1 changed file
with
44 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,44 @@ | ||
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 python | ||
uses: actions/setup-python@v4 | ||
id: cp380 | ||
with: | ||
python-version: '3.8.0' | ||
update-environment: true | ||
- name: build | ||
run: | | ||
git branch | ||
echo "===========!+++++Separator++++++!===========" | ||
set PYTHON_HOME=${{ Env.pythonLocation }} | ||
echo %PYTHON_HOME% | ||
echo "===========!+++++Separator++++++!===========" | ||
# file name too long will lead to build fail, so shorten the full path. | ||
subst z: %cd% | ||
cd /d z:\ | ||
echo "===========!+++++Separator++++++!===========" | ||
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 |