mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
change GitHub Action (#3512)
* Update simulator.yml add action steps * Update cmake.yml add action steps
This commit is contained in:
Vendored
+30
@@ -13,6 +13,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '2.7.18'
|
||||
|
||||
- name: Create build directory
|
||||
run: mkdir -p ${{github.workspace}}/unit-test/build
|
||||
@@ -28,6 +31,33 @@ jobs:
|
||||
rm ${{github.workspace}}/external/*
|
||||
git clone --branch ${external_version} --depth 1 https://github.com/${external_repo_parent}/${external_repo_name} .
|
||||
git log --oneline -1
|
||||
|
||||
- name: pip install
|
||||
run: |
|
||||
python -m easy_install pip
|
||||
python -m pip install PyYAML
|
||||
python -m pip install Cheetah
|
||||
- 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: Configure CMake
|
||||
shell: bash
|
||||
|
||||
+64
-4
@@ -1,5 +1,7 @@
|
||||
name: gen simulator
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
win_gen_simulator:
|
||||
# windows 2019, Visual Studio Enterprise 2019
|
||||
@@ -9,14 +11,44 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '2.7.18'
|
||||
architecture: 'x86'
|
||||
|
||||
- name: npm install
|
||||
run: |
|
||||
npm install
|
||||
- name: download external libraries
|
||||
- name: download external libraries
|
||||
run: |
|
||||
node ./utils/download-deps.js
|
||||
- name: gen-simulator
|
||||
- name: install vulkan-sdk
|
||||
run: |
|
||||
choco install vulkan-sdk
|
||||
- name: pip install
|
||||
run: |
|
||||
python -m easy_install pip
|
||||
python -m pip install PyYAML
|
||||
python -m pip install Cheetah
|
||||
- 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
|
||||
@@ -29,15 +61,43 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '2.7.18'
|
||||
|
||||
- name: npm install
|
||||
run: |
|
||||
npm install
|
||||
npm install gulp -g
|
||||
- name: download external libraries
|
||||
- name: download external libraries
|
||||
run: |
|
||||
node ./utils/download-deps.js
|
||||
- name: gen-simulator
|
||||
- name: pip install
|
||||
run: |
|
||||
python -m easy_install pip
|
||||
python -m pip install PyYAML
|
||||
python -m pip install Cheetah
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user