-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
67 lines (64 loc) · 2.08 KB
/
Copy pathbuild-launcher.yml
File metadata and controls
67 lines (64 loc) · 2.08 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
name: Build Launcher
on:
pull_request:
paths:
- '.github/workflows/build-launcher.yml'
- 'build/Stride.Launcher.slnx'
- 'sources/core/**'
- 'sources/launcher/**'
- 'sources/presentation/**'
- '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
workflow_call:
inputs:
build-type:
default: Debug
type: string
concurrency:
group: build-launcher-${{ github.event.pull_request.number || github.ref }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}
cancel-in-progress: true
jobs:
#
# Build Stride Runtime for Windows
#
Launcher:
# Fork-friendly: PR runs only when STRIDE_ENABLE_PUSH_CI is set on the repo.
# workflow_dispatch and workflow_call (chained from main.yml) always run.
if: >
github.event_name == 'workflow_dispatch'
|| github.event_name == 'workflow_call'
|| (github.event.pull_request.draft == false && vars.STRIDE_ENABLE_PUSH_CI == 'true')
name: Launcher (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-2025-vs2026
steps:
# Bootstrap .github so the local composite action below is resolvable pre-checkout.
- uses: actions/checkout@v4
with:
sparse-checkout: .github
- uses: ./.github/actions/stride-checkout
with:
exclude: samples
- name: Build
run: |
dotnet build build\Stride.Launcher.slnx `
-nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Windows `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true