Files
cocos4/native/.github/workflows/unit-test.yml
T
2021-06-24 15:37:01 +08:00

33 lines
822 B
YAML

name: 🧪 Unit Test
on: [pull_request]
jobs:
unit-test-with-cmake:
name: "Run on windows"
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Downlad external libraties
run: |
npm install
npm install gulp -g
node ./utils/download-deps.js
- name: Generate bindings
shell: bash
run: |
python -m pip install PyYAML Cheetah3
python ./tools/tojs/genbindings.py
- name: Build & Run
shell: bash
run: |
cmake -B unit-test/build -S unit-test -G"Visual Studio 16 2019" -A win32
cmake --build unit-test/build --config Release
./unit-test/build/src/Release/CocosTest.exe