forked from stride3d/stride
-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.98 KB
/
test-linux.yml
File metadata and controls
60 lines (57 loc) · 1.98 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
name: Test Linux
on:
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Release
type: choice
options:
- Debug
- Release
test-category:
description: Category of tests
default: Simple
type: choice
options:
- Simple
- Game
workflow_call:
inputs:
build-type:
default: Release
type: string
test-category:
default: Simple
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}-${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}
cancel-in-progress: true
jobs:
#
# Test Stride on Linux
#
Linux-Tests:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Test (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build
run: |
dotnet build build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
-p:StridePlatforms=Linux `
-p:StrideGraphicsApis=OpenGL
- name: Test
run: |
dotnet test build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
--no-build `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }}