Nightly build #846
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly build | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 23 * * 1-5 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
with: | |
submodules: 'recursive' | |
- name: View Apps\node_modules content | |
run: Get-ChildItem -Path .\Apps\node_modules -Recurse | |
- name: Make Solution | |
run: mkdir buildWin32_x64 && | |
cd buildWin32_x64 && | |
cmake -A x64 -DBGFX_CONFIG_DEBUG=ON .. | |
- name: NPM download nightly | |
run: npm run getNightly | |
working-directory: ./Apps | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Build Win32 | |
run: msbuild buildWin32_x64/BabylonNative.sln -p:Configuration="RelWithDebInfo" -p:Platform=x64 | |
- name: Run Validation Tests | |
run: | | |
Playground.exe app:///Scripts/validation_native.js | |
shell: cmd | |
working-directory: buildWin32_x64/Apps/Playground/RelWithDebInfo | |
- name: Upload Errors images artifact | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: ErrorImages | |
path: | | |
buildWin32_x64/Apps/Playground/Errors | |
- name: Upload Result images artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ResultImages | |
path: | | |
buildWin32_x64/Apps/Playground/Results |