Files
cocos-engine/.github/workflows/native-simulator.yml
fish9167 82cd89d260 Update native-compile-platforms.yml (#10362)
* Update native-compile-platforms.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)

* Update automation_labels.yml

组织名称修改

* change Visual Studio version

修改 Visual Studio 版本(2017-->2019)

* Update native-simulator.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)
2022-03-16 16:00:23 +08:00

89 lines
2.4 KiB
YAML

name: <Native> Simulator
#on: [pull_request]
on:
pull_request:
paths:
- 'native/**'
jobs:
win_gen_simulator:
runs-on: windows-2019
name: Windows
defaults:
run:
working-directory: ${{github.workspace}}/native
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: npm install
run: |
npm install
- name: download external libraries
run: |
node ./utils/download-deps.js
- name: install vulkan-sdk
run: |
choco install vulkan-sdk
- name: pip install
run: |
python -m pip install PyYAML==5.4.1 Cheetah3
- name: generate bindings glue codes
shell: bash
run: |
python -V
cd ./tools/tojs
echo "Create auto-generated jsbinding glue codes."
python ./genbindings.py
rm userconf.ini
- name: gen simulator
run: |
gulp gen-simulator-release
- name: check result
run: |
Get-ChildItem ./simulator/Debug -Name SimulatorApp-Win32.exe
if(Test-Path ./simulator/Debug/SimulatorApp-Win32.exe) {exit 0} else {exit 1}
# mac_gen_simulator:
# runs-on: macos-latest
# name: MacOS
# defaults:
# run:
# working-directory: ${{github.workspace}}/native
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: "3.x"
# - name: npm install
# run: |
# npm install
# npm install gulp -g
# - name: download external libraries
# run: |
# node ./utils/download-deps.js
# - name: pip install
# run: |
# python -m pip install PyYAML Cheetah3
# - name: generate bindings glue codes
# shell: bash
# run: |
# python -V
# cd ${{github.workspace}}/tools/travis-scripts
# echo "Create auto-generated jsbinding glue codes."
# pushd ${{github.workspace}}/tools/tojs
# python ./genbindings.py
# rm userconf.ini
# popd
# - name: gen simulator
# run: |
# gulp gen-simulator-release
# - name: check result
# run: |
# find ./ -name SimulatorApp-Mac
# [ -f ./simulator/Debug/SimulatorApp-Mac.app/Contents/MacOS/SimulatorApp-Mac ] && exit 0 || exit 1