-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
52 lines (49 loc) · 1.61 KB
/
build-vs-package.yml
File metadata and controls
52 lines (49 loc) · 1.61 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
name: Build Visual Studio Package
on:
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
# - Release # has a bug and cannot build
workflow_call:
inputs:
build-type:
default: Debug
type: string
repository_dispatch:
# Fired by chatops bot. Payload: { pr_number, dispatched_by }.
types: [build-vs-package]
concurrency:
group: build-vs-package-${{ github.event.pull_request.number || github.event.client_payload.pr_number || github.ref }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}
cancel-in-progress: true
jobs:
#
# Build Visual Studio Package
#
VS-Package:
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: true
ref: ${{ github.event.client_payload.pr_number && format('refs/pull/{0}/merge', github.event.client_payload.pr_number) || github.ref }}
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: microsoft/setup-msbuild@v3
with:
vs-version: '[18.0,19.0)'
- name: Build
run: |
msbuild build\Stride.VisualStudio.sln `
-restore -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true