mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
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 目录下有文件修改才会触发该任务)
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: Check organization
|
||||
id: get_check_code
|
||||
run: |
|
||||
http_code=`curl -s --head -I -H "Authorization: token ${{ secrets.LABEl_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/cocos-creator/members/${{ github.event.pull_request.user.login }} | awk '/HTTP/{print $2}'`
|
||||
http_code=`curl -s --head -I -H "Authorization: token ${{ secrets.LABEl_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/cocos/members/${{ github.event.pull_request.user.login }} | awk '/HTTP/{print $2}'`
|
||||
echo "::set-output name=http_code::${http_code}"
|
||||
- name: Echo username organization
|
||||
run: |
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
name: <Native> Compile
|
||||
|
||||
on: [pull_request]
|
||||
#on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'native/**'
|
||||
|
||||
jobs:
|
||||
compile_windows:
|
||||
# windows 2019, Visual Studio Enterprise 2019
|
||||
# windows 2016, Visual Studio Enterprise 2017
|
||||
#runs-on: windows-latest
|
||||
# runs-on: windows-2019
|
||||
runs-on: windows-2016
|
||||
runs-on: windows-2019
|
||||
name: "Windows"
|
||||
|
||||
steps:
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
cd build-win32
|
||||
RES_DIR=${GITHUB_WORKSPACE//\\//}/native/templates/windows/build-win32
|
||||
COCOS_X_PATH=${GITHUB_WORKSPACE//\\//}/native
|
||||
cmake ../ -G"Visual Studio 15 2017" -DRES_DIR=$RES_DIR -DCOCOS_X_PATH=$COCOS_X_PATH -Awin32
|
||||
cmake ../ -G"Visual Studio 16 2019" -DRES_DIR=$RES_DIR -DCOCOS_X_PATH=$COCOS_X_PATH -Awin32
|
||||
cmake --build . --config Release
|
||||
echo "Compile Win32 Release Done!"
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
name: <Native> Simulator
|
||||
|
||||
on: [pull_request]
|
||||
#on: [pull_request]
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'native/**'
|
||||
|
||||
jobs:
|
||||
win_gen_simulator:
|
||||
# windows 2019, Visual Studio Enterprise 2019
|
||||
# windows 2016, Visual Studio Enterprise 2017
|
||||
#runs-on: windows-latest
|
||||
runs-on: windows-2016
|
||||
runs-on: windows-2019
|
||||
name: Windows
|
||||
defaults:
|
||||
run:
|
||||
@@ -46,6 +47,7 @@ jobs:
|
||||
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
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ gulp.task('gen-simulator', async function () {
|
||||
var args = [];
|
||||
args.push('-G');
|
||||
if (isWin32) {
|
||||
args.push('Visual Studio 15 2017','-A','x64');
|
||||
args.push('Visual Studio 16 2019','-A','x64');
|
||||
}
|
||||
else {
|
||||
args.push('Xcode');
|
||||
|
||||
Reference in New Issue
Block a user