-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
79 lines (76 loc) · 2.46 KB
/
build-windows-runtime.yml
File metadata and controls
79 lines (76 loc) · 2.46 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
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build Windows Runtime
on:
pull_request:
paths:
- '.github/workflows/build-windows-runtime.yml'
- 'build/Stride.Runtime.slnf'
- 'deps/**'
- 'sources/core/**'
- 'sources/engine/**'
- 'sources/native/**'
- 'sources/shaders/**'
- 'sources/shared/**'
- 'sources/sdk/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
- Release
graphics-api:
description: Graphics API
default: Direct3D11
type: choice
options:
- Direct3D11
- Direct3D12
- OpenGL
- OpenGLES
- Vulkan
workflow_call:
inputs:
build-type:
default: Debug
type: string
graphics-api:
default: Direct3D11
type: string
concurrency:
group: build-windows-runtime-${{ github.event.pull_request.number || github.ref }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}-${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }}
cancel-in-progress: true
jobs:
#
# Build Stride Runtime for Windows
#
Windows-Runtime:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: ./.github/actions/build-sdk
- name: Build
run: |
dotnet build build\Stride.Runtime.slnf `
-p:StrideNativeBuildMode=Clang `
-m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Windows `
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true