-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
63 lines (58 loc) · 1.81 KB
/
Copy pathtest-windows-simple.yml
File metadata and controls
63 lines (58 loc) · 1.81 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
name: Test Windows (Simple)
on:
workflow_dispatch:
inputs:
build-type:
description: Build
default: Debug
type: choice
options:
- Debug
- Release
workflow_call:
inputs:
build-type:
default: Debug
type: string
permissions:
checks: write
contents: read
concurrency:
group: test-windows-simple-${{ github.event.pull_request.number || github.ref }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}
cancel-in-progress: true
jobs:
Windows-Tests:
name: Test (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, Simple)
runs-on: windows-2025-vs2026
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Build
run: |
dotnet build build\Stride.Tests.Simple.slnf `
-p:StrideTestRuntimeIdentifier=win-x64 `
-p:StrideNativeBuildMode=Clang `
-nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Windows `
-p:StrideGraphicsApis=Direct3D11
- name: Test
run: |
dotnet test build\Stride.Tests.Simple.slnf `
--no-build `
--logger:trx --results-directory TestResults `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}
- name: Publish Test Report
if: always()
uses: dorny/test-reporter@v1
with:
name: 'Test Report: Windows Simple'
path: TestResults/*.trx
reporter: dotnet-trx
token: ${{ secrets.GITHUB_TOKEN }}