forked from BabylonJS/BabylonNative
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnightly.yml
More file actions
66 lines (55 loc) · 1.54 KB
/
Copy pathnightly.yml
File metadata and controls
66 lines (55 loc) · 1.54 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
trigger: none
pr: none
schedules:
- cron: "0 23 * * 1-5"
displayName: Nightly Build
branches:
include:
- master
always: true
pool:
vmImage: 'windows-latest'
variables:
CMAKE_VERSION: 3.30.3
jobs:
- job: Nightly
displayName: Nightly
steps:
- checkout: self
- script: |
cmake -G "Visual Studio 17 2022" -B build -A x64 -D BX_CONFIG_DEBUG=ON -D BGFX_CONFIG_MAX_FRAME_BUFFERS=256 -D BABYLON_DEBUG_TRACE=ON
displayName: 'Generate solution'
- script: |
cd Apps
npm run getNightly
displayName: 'Download nightly'
- task: MSBuild@1
inputs:
solution: 'build/BabylonNative.sln'
maximumCpuCount: true
configuration: 'RelWithDebInfo'
displayName: 'Build'
- script: |
Playground.exe app:///Scripts/validation_native.js
workingDirectory: build/Apps/Playground/RelWithDebInfo
displayName: 'Run VisualizationTests'
- script: |
UnitTests.exe
workingDirectory: build/Apps/UnitTests/RelWithDebInfo
displayName: 'Run UnitTests'
- task: PublishBuildArtifacts@1
displayName: Upload Errors images artifact
condition: failed()
inputs:
PathtoPublish: build/Apps/Playground/Errors
ArtifactName: ErrorImages
- task: PublishBuildArtifacts@1
displayName: Upload Playground
inputs:
PathtoPublish: build/Apps/Playground
ArtifactName: BabylonNativeNightlyPlayground
- task: PublishBuildArtifacts@1
displayName: Upload UnitTests
inputs:
PathtoPublish: build/Apps/UnitTests
ArtifactName: BabylonNativeNightlyUnitTests