Skip to content

Commit 372178c

Browse files
committed
Trigger specific workflows on PR events
1 parent 60963cd commit 372178c

9 files changed

Lines changed: 127 additions & 29 deletions

.github/workflows/build-android.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
name: Build Android Runtime
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-android.yml'
7+
- 'build/Stride.Android.sln'
8+
- 'deps/**'
9+
- 'sources/core/**'
10+
- 'sources/engine/**'
11+
- 'sources/native/**'
12+
- 'sources/shaders/**'
13+
- 'sources/shared/**'
14+
- 'sources/targets/**'
15+
- '!**/.all-contributorsrc'
16+
- '!**/.editorconfig'
17+
- '!**/.gitignore'
18+
- '!**/*.md'
19+
- '!crowdin.yml'
20+
types: [opened, synchronize, reopened, ready_for_review]
421
workflow_dispatch:
522
inputs:
623
build-type:
@@ -21,7 +38,7 @@ jobs:
2138
# Build Stride Runtime for Android
2239
#
2340
Android-Runtime:
24-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
41+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
2542
runs-on: windows-latest
2643
steps:
2744
- uses: actions/checkout@v4
@@ -36,7 +53,7 @@ jobs:
3653
msbuild build\Stride.Android.sln `
3754
-restore -m:1 -nr:false `
3855
-v:m -p:WarningLevel=0 `
39-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
56+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4057
-p:StridePlatforms=Android `
4158
-p:StrideSkipUnitTests=true `
4259
-p:StrideSkipAutoPack=true

.github/workflows/build-assembly-processor.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
name: Build Assembly Processor
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-assembly-processor.yml'
7+
- 'build/Stride.AssemblyProcessor.sln'
8+
- 'sources/core/Stride.Core/**'
9+
- 'sources/core/Stride.Core.AssemblyProcessor/**'
10+
- 'sources/core/Stride.Core.AssemblyProcessor.Tests/**'
11+
- '!**/.all-contributorsrc'
12+
- '!**/.editorconfig'
13+
- '!**/.gitignore'
14+
- '!**/*.md'
15+
- '!crowdin.yml'
16+
types: [opened, synchronize, reopened, ready_for_review]
417
workflow_dispatch:
518
inputs:
619
build-type:
@@ -21,7 +34,7 @@ jobs:
2134
# Build Assembly Processor
2235
#
2336
Assembly-Processor:
24-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
37+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
2538
runs-on: windows-latest
2639
steps:
2740
- uses: actions/checkout@v4
@@ -35,6 +48,6 @@ jobs:
3548
dotnet build build\Stride.AssemblyProcessor.sln `
3649
-restore -m:1 -nr:false `
3750
-v:m -p:WarningLevel=0 `
38-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
51+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
3952
-p:StrideSkipUnitTests=true `
4053
-p:StrideSkipAutoPack=true

.github/workflows/build-ios.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
name: Build iOS Runtime
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-ios.yml'
7+
- 'build/Stride.iOS.sln'
8+
- 'deps/**'
9+
- 'sources/core/**'
10+
- 'sources/engine/**'
11+
- 'sources/native/**'
12+
- 'sources/shaders/**'
13+
- 'sources/shared/**'
14+
- 'sources/targets/**'
15+
- '!**/.all-contributorsrc'
16+
- '!**/.editorconfig'
17+
- '!**/.gitignore'
18+
- '!**/*.md'
19+
- '!crowdin.yml'
20+
types: [opened, synchronize, reopened, ready_for_review]
421
workflow_dispatch:
522
inputs:
623
build-type:
@@ -21,7 +38,7 @@ jobs:
2138
# Build Stride Runtime for iOS
2239
#
2340
iOS-Runtime:
24-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
41+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
2542
runs-on: windows-latest
2643
steps:
2744
- uses: actions/checkout@v4
@@ -36,7 +53,7 @@ jobs:
3653
msbuild build\Stride.iOS.sln `
3754
-restore -m:1 -nr:false `
3855
-v:m -p:WarningLevel=0 `
39-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
56+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4057
-p:StridePlatforms=iOS `
4158
-p:StrideSkipUnitTests=true `
4259
-p:StrideSkipAutoPack=true

.github/workflows/build-linux-runtime.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
name: Build Linux Runtime
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-linux-runtime.yml'
7+
- 'build/Stride.Runtime.sln'
8+
- 'deps/**'
9+
- 'sources/core/**'
10+
- 'sources/engine/**'
11+
- 'sources/native/**'
12+
- 'sources/shaders/**'
13+
- 'sources/shared/**'
14+
- 'sources/targets/**'
15+
- '!**/.all-contributorsrc'
16+
- '!**/.editorconfig'
17+
- '!**/.gitignore'
18+
- '!**/*.md'
19+
- '!crowdin.yml'
20+
types: [opened, synchronize, reopened, ready_for_review]
421
workflow_dispatch:
522
inputs:
623
build-type:
@@ -31,7 +48,7 @@ jobs:
3148
# Build Stride Runtime for Linux
3249
#
3350
Linux-Runtime:
34-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }})
51+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }})
3552
runs-on: windows-latest
3653
steps:
3754
- uses: actions/checkout@v4
@@ -46,8 +63,8 @@ jobs:
4663
msbuild build\Stride.Runtime.sln `
4764
-restore -m:1 -nr:false `
4865
-v:m -p:WarningLevel=0 `
49-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
66+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
5067
-p:StridePlatforms=Linux `
51-
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} `
68+
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }} `
5269
-p:StrideSkipUnitTests=true `
5370
-p:StrideSkipAutoPack=true

.github/workflows/build-vs-package.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: Build Visual Studio Package
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-vs-package.yml'
7+
- 'build/Stride.VisualStudio.sln'
8+
- 'sources/tools/Stride.VisualStudio.*/**'
9+
- 'sources/targets/**'
10+
- '!**/.all-contributorsrc'
11+
- '!**/.editorconfig'
12+
- '!**/.gitignore'
13+
- '!**/*.md'
14+
- '!crowdin.yml'
15+
types: [opened, synchronize, reopened, ready_for_review]
416
workflow_dispatch:
517
inputs:
618
build-type:
@@ -21,7 +33,7 @@ jobs:
2133
# Build Visual Studio Package
2234
#
2335
VS-Package:
24-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
36+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
2537
runs-on: windows-latest
2638
steps:
2739
- uses: actions/checkout@v4
@@ -36,6 +48,6 @@ jobs:
3648
msbuild build\Stride.VisualStudio.sln `
3749
-restore -m:1 -nr:false `
3850
-v:m -p:WarningLevel=0 `
39-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
51+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4052
-p:StrideSkipUnitTests=true `
4153
-p:StrideSkipAutoPack=true

.github/workflows/build-windows-full.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: Build Windows (Full)
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-windows-full.yml'
7+
- 'build/Stride.sln'
8+
- 'deps/**'
9+
- 'sources/**'
10+
- '!**/.all-contributorsrc'
11+
- '!**/.editorconfig'
12+
- '!**/.gitignore'
13+
- '!**/*.md'
14+
- '!crowdin.yml'
15+
types: [opened, synchronize, reopened, ready_for_review]
416
workflow_dispatch:
517
inputs:
618
build-type:
@@ -21,7 +33,7 @@ jobs:
2133
# Build Stride for Windows
2234
#
2335
Windows:
24-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
36+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
2537
runs-on: windows-latest
2638
steps:
2739
- uses: actions/checkout@v4
@@ -36,7 +48,7 @@ jobs:
3648
msbuild build\Stride.sln `
3749
-restore -m:1 -nr:false `
3850
-v:m -p:WarningLevel=0 `
39-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
51+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4052
-p:StridePlatforms=Windows `
4153
-p:StrideGraphicsApiDependentBuildAll=true `
4254
-p:StrideSkipUnitTests=true `

.github/workflows/build-windows-runtime.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
name: Build Windows Runtime
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-windows-runtime.yml'
7+
- 'build/Stride.Runtime.sln'
8+
- 'deps/**'
9+
- 'sources/core/**'
10+
- 'sources/engine/**'
11+
- 'sources/native/**'
12+
- 'sources/shaders/**'
13+
- 'sources/shared/**'
14+
- 'sources/targets/**'
15+
- '!**/.all-contributorsrc'
16+
- '!**/.editorconfig'
17+
- '!**/.gitignore'
18+
- '!**/*.md'
19+
- '!crowdin.yml'
20+
types: [opened, synchronize, reopened, ready_for_review]
421
workflow_dispatch:
522
inputs:
623
build-type:
@@ -34,7 +51,7 @@ jobs:
3451
# Build Stride Runtime for Windows
3552
#
3653
Windows-Runtime:
37-
name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }})
54+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }})
3855
runs-on: windows-latest
3956
steps:
4057
- uses: actions/checkout@v4
@@ -49,8 +66,8 @@ jobs:
4966
msbuild build\Stride.Runtime.sln `
5067
-restore -m:1 -nr:false `
5168
-v:m -p:WarningLevel=0 `
52-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
69+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
5370
-p:StridePlatforms=Windows `
54-
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} `
71+
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }} `
5572
-p:StrideSkipUnitTests=true `
5673
-p:StrideSkipAutoPack=true

.github/workflows/test-windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Test Stride on Windows
3333
#
3434
Windows-Tests:
35-
name: Test (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.test-category || inputs.test-category }})
35+
name: Test (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }})
3636
runs-on: windows-latest
3737
steps:
3838
- uses: actions/checkout@v4
@@ -44,14 +44,14 @@ jobs:
4444
- uses: microsoft/setup-msbuild@v2
4545
- name: Build
4646
run: |
47-
msbuild build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category }}.slnf `
47+
msbuild build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
4848
-restore -m:1 -nr:false `
4949
-v:m -p:WarningLevel=0 `
50-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
50+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
5151
-p:StridePlatforms=Windows `
5252
-p:StrideGraphicsApis=Direct3D11
5353
- name: Test
5454
run: |
55-
dotnet test build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category }}.slnf `
55+
dotnet test build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}.slnf `
5656
--no-build `
57-
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }}
57+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}

build/Stride.Runtime.sln

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "20-StrideRuntime", "20-Stri
88
EndProject
99
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Targets.Private", "00-Targets.Private", "{97978864-95DD-43A6-9159-AA1C881BE99F}"
1010
ProjectSection(SolutionItems) = preProject
11-
..\sources\native\Stride.Native.targets = ..\sources\native\Stride.Native.targets
1211
..\sources\targets\Stride.Core.PostSettings.Dependencies.targets = ..\sources\targets\Stride.Core.PostSettings.Dependencies.targets
1312
..\sources\targets\Stride.Core.props = ..\sources\targets\Stride.Core.props
1413
..\sources\targets\Stride.Core.targets = ..\sources\targets\Stride.Core.targets
1514
..\sources\targets\Stride.GraphicsApi.Dev.targets = ..\sources\targets\Stride.GraphicsApi.Dev.targets
1615
..\sources\targets\Stride.GraphicsApi.PackageReference.targets = ..\sources\targets\Stride.GraphicsApi.PackageReference.targets
16+
..\sources\native\Stride.Native.targets = ..\sources\native\Stride.Native.targets
1717
..\sources\targets\Stride.PackageVersion.targets = ..\sources\targets\Stride.PackageVersion.targets
1818
..\sources\targets\Stride.props = ..\sources\targets\Stride.props
1919
..\sources\targets\Stride.targets = ..\sources\targets\Stride.targets
@@ -30,8 +30,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Config", "00-Config", "{
3030
..\sources\shared\SharedAssemblyInfo.cs = ..\sources\shared\SharedAssemblyInfo.cs
3131
EndProjectSection
3232
EndProject
33-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Stride.Shared", "Stride.Shared", "{1AC70118-C90F-4EC6-9D8B-C628BDF900F7}"
34-
EndProject
3533
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "21-StrideRuntime.Tests", "21-StrideRuntime.Tests", "{A7ED9F01-7D78-4381-90A6-D50E51C17250}"
3634
EndProject
3735
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Targets.Build", "00-Targets.Build", "{0B81090E-4066-4723-A658-8AEDBEADE619}"
@@ -102,8 +100,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Games.Testing", "..\
102100
EndProject
103101
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Native", "..\sources\engine\Stride.Native\Stride.Native.csproj", "{1DBBC150-F085-43EF-B41D-27C72D133770}"
104102
EndProject
105-
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Stride.Refactor", "..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.shproj", "{B33E576F-2279-4BFC-A438-D9B84343B56B}"
106-
EndProject
107103
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.VirtualReality", "..\sources\engine\Stride.VirtualReality\Stride.VirtualReality.csproj", "{53782603-3096-40C2-ABD3-F8F311BAE4BE}"
108104
EndProject
109105
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Navigation", "..\sources\engine\Stride.Navigation\Stride.Navigation.csproj", "{FBE1FA7B-E699-4BB2-9C8F-41F4C9F3F088}"
@@ -309,7 +305,6 @@ Global
309305
HideSolutionNode = FALSE
310306
EndGlobalSection
311307
GlobalSection(NestedProjects) = preSolution
312-
{1AC70118-C90F-4EC6-9D8B-C628BDF900F7} = {4C142567-C42B-40F5-B092-798882190209}
313308
{C121A566-555E-42B9-9B0A-1696529A9088} = {4C142567-C42B-40F5-B092-798882190209}
314309
{FB06C76A-6BB7-40BE-9AFA-FEC13B045FB5} = {4C142567-C42B-40F5-B092-798882190209}
315310
{F2D52EDB-BC17-4243-B06D-33CD20F87A7F} = {10D145AF-C8AE-428F-A80F-CA1B591D0DB2}
@@ -333,7 +328,6 @@ Global
333328
{F32FDA80-B6DD-47A8-8681-437E2C0D3F31} = {4C142567-C42B-40F5-B092-798882190209}
334329
{B84ECB15-5E3F-4BD1-AB87-333BAE9B70F9} = {A7ED9F01-7D78-4381-90A6-D50E51C17250}
335330
{1DBBC150-F085-43EF-B41D-27C72D133770} = {4C142567-C42B-40F5-B092-798882190209}
336-
{B33E576F-2279-4BFC-A438-D9B84343B56B} = {1AC70118-C90F-4EC6-9D8B-C628BDF900F7}
337331
{53782603-3096-40C2-ABD3-F8F311BAE4BE} = {4C142567-C42B-40F5-B092-798882190209}
338332
{FBE1FA7B-E699-4BB2-9C8F-41F4C9F3F088} = {4C142567-C42B-40F5-B092-798882190209}
339333
{B4EABB0D-E495-405C-B7B1-E2A7A3711AF5} = {FC791F56-C1F1-4C41-A193-868D8197F8E2}
@@ -345,7 +339,6 @@ Global
345339
SolutionGuid = {FF877973-604D-4EA7-B5F5-A129961F9EF2}
346340
EndGlobalSection
347341
GlobalSection(SharedMSBuildProjectFiles) = preSolution
348-
..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{b33e576f-2279-4bfc-a438-d9b84343b56b}*SharedItemsImports = 13
349342
..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{c121a566-555e-42b9-9b0a-1696529a9088}*SharedItemsImports = 5
350343
..\sources\shared\Stride.Core.ShellHelper\Stride.Core.ShellHelper.projitems*{e8b3553f-a79f-4e50-b75b-acee771c320c}*SharedItemsImports = 5
351344
..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{fb06c76a-6bb7-40be-9afa-fec13b045fb5}*SharedItemsImports = 5

0 commit comments

Comments
 (0)