forked from cocos/engine-native
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (96 loc) · 3.18 KB
/
simulator.yml
File metadata and controls
100 lines (96 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: 🖥️ Simulator
on: [pull_request]
jobs:
win_gen_simulator:
# windows 2019, Visual Studio Enterprise 2019
# windows 2016, Visual Studio Enterprise 2017
#runs-on: windows-latest
runs-on: windows-2016
name: Windows
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: install android ndk
shell: bash
working-directory: ${{github.workspace}}
run: |
curl -O http://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip
unzip -q android-ndk-r16b-windows-x86_64.zip
mkdir -p ${HOME}/bin
mv android-ndk-r16b ${HOME}/bin/android-ndk
ls ${HOME}
- name: generate bindings glue codes
shell: bash
run: |
python -V
export NDK_ROOT=${HOME}/bin/android-ndk
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
# 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: install android ndk
# shell: bash
# working-directory: ${{github.workspace}}
# run: |
# curl -O http://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
# unzip -q android-ndk-r16b-darwin-x86_64.zip
# mkdir -p ${HOME}/bin
# mv android-ndk-r16b ${HOME}/bin/android-ndk
# ls ${HOME}
# - name: generate bindings glue codes
# shell: bash
# run: |
# python -V
# export NDK_ROOT=${HOME}/bin/android-ndk
# 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