Skip to content

Commit be813ee

Browse files
committed
Cherry-pick from feature/github-ci-pr
1 parent 3871941 commit be813ee

12 files changed

+705
-8
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build Android Runtime
2+
3+
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]
21+
workflow_dispatch:
22+
inputs:
23+
build-type:
24+
description: Build Configuration
25+
default: Debug
26+
type: choice
27+
options:
28+
- Debug
29+
- Release
30+
workflow_call:
31+
inputs:
32+
build-type:
33+
default: Debug
34+
type: string
35+
36+
jobs:
37+
#
38+
# Build Stride Runtime for Android
39+
#
40+
Android-Runtime:
41+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
42+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
lfs: true
48+
- uses: actions/setup-dotnet@v4
49+
with:
50+
dotnet-version: '8.0.x'
51+
- uses: microsoft/setup-msbuild@v2
52+
- name: Build
53+
run: |
54+
msbuild build\Stride.Android.sln `
55+
-restore -m:1 -nr:false `
56+
-v:m -p:WarningLevel=0 `
57+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
58+
-p:StridePlatforms=Android `
59+
-p:StrideSkipUnitTests=true `
60+
-p:StrideSkipAutoPack=true
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build Assembly Processor
2+
3+
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]
17+
workflow_dispatch:
18+
inputs:
19+
build-type:
20+
description: Build Configuration
21+
default: Debug
22+
type: choice
23+
options:
24+
- Debug
25+
- Release
26+
workflow_call:
27+
inputs:
28+
build-type:
29+
default: Debug
30+
type: string
31+
32+
jobs:
33+
#
34+
# Build Assembly Processor
35+
#
36+
Assembly-Processor:
37+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
38+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
39+
runs-on: windows-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
lfs: true
44+
- uses: actions/setup-dotnet@v4
45+
with:
46+
dotnet-version: '8.0.x'
47+
- name: Build
48+
run: |
49+
dotnet build build\Stride.AssemblyProcessor.sln `
50+
-restore -m:1 -nr:false `
51+
-v:m -p:WarningLevel=0 `
52+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
53+
-p:StrideSkipUnitTests=true `
54+
-p:StrideSkipAutoPack=true

.github/workflows/build-ios.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build iOS Runtime
2+
3+
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]
21+
workflow_dispatch:
22+
inputs:
23+
build-type:
24+
description: Build Configuration
25+
default: Debug
26+
type: choice
27+
options:
28+
- Debug
29+
- Release
30+
workflow_call:
31+
inputs:
32+
build-type:
33+
default: Debug
34+
type: string
35+
36+
jobs:
37+
#
38+
# Build Stride Runtime for iOS
39+
#
40+
iOS-Runtime:
41+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
42+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
lfs: true
48+
- uses: actions/setup-dotnet@v4
49+
with:
50+
dotnet-version: '8.0.x'
51+
- uses: microsoft/setup-msbuild@v2
52+
- name: Build
53+
run: |
54+
msbuild build\Stride.iOS.sln `
55+
-restore -m:1 -nr:false `
56+
-v:m -p:WarningLevel=0 `
57+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
58+
-p:StridePlatforms=iOS `
59+
-p:StrideSkipUnitTests=true `
60+
-p:StrideSkipAutoPack=true
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build Launcher
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/build-launcher.yml'
7+
- 'build/Stride.Launcher.sln'
8+
- 'sources/core/**'
9+
- 'sources/launcher/**'
10+
- 'sources/presentation/**'
11+
- 'sources/shared/**'
12+
- 'sources/targets/**'
13+
- '!**/.all-contributorsrc'
14+
- '!**/.editorconfig'
15+
- '!**/.gitignore'
16+
- '!**/*.md'
17+
- '!crowdin.yml'
18+
types: [opened, synchronize, reopened, ready_for_review]
19+
workflow_dispatch:
20+
inputs:
21+
build-type:
22+
description: Build Configuration
23+
default: Debug
24+
type: choice
25+
options:
26+
- Debug
27+
- Release
28+
workflow_call:
29+
inputs:
30+
build-type:
31+
default: Debug
32+
type: string
33+
34+
jobs:
35+
#
36+
# Build Stride Runtime for Windows
37+
#
38+
Launcher:
39+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
40+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
41+
runs-on: windows-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
lfs: true
46+
- uses: actions/setup-dotnet@v4
47+
with:
48+
dotnet-version: '8.0.x'
49+
- uses: microsoft/setup-msbuild@v2
50+
- name: Build
51+
run: |
52+
msbuild build\Stride.Launcher.sln `
53+
-restore -m:1 -nr:false `
54+
-v:m -p:WarningLevel=0 `
55+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
56+
-p:StridePlatforms=Windows `
57+
-p:StrideSkipUnitTests=true `
58+
-p:StrideSkipAutoPack=true
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build Linux Runtime
2+
3+
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]
21+
workflow_dispatch:
22+
inputs:
23+
build-type:
24+
description: Build Configuration
25+
default: Debug
26+
type: choice
27+
options:
28+
- Debug
29+
- Release
30+
graphics-api:
31+
description: Graphics API
32+
default: OpenGL
33+
type: choice
34+
options:
35+
- OpenGL
36+
- Vulkan
37+
workflow_call:
38+
inputs:
39+
build-type:
40+
default: Debug
41+
type: string
42+
graphics-api:
43+
default: OpenGL
44+
type: string
45+
46+
jobs:
47+
#
48+
# Build Stride Runtime for Linux
49+
#
50+
Linux-Runtime:
51+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
52+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }})
53+
runs-on: windows-latest
54+
steps:
55+
- uses: actions/checkout@v4
56+
with:
57+
lfs: true
58+
- uses: actions/setup-dotnet@v4
59+
with:
60+
dotnet-version: '8.0.x'
61+
- uses: microsoft/setup-msbuild@v2
62+
- name: Build
63+
run: |
64+
msbuild build\Stride.Runtime.sln `
65+
-restore -m:1 -nr:false `
66+
-v:m -p:WarningLevel=0 `
67+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
68+
-p:StridePlatforms=Linux `
69+
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }} `
70+
-p:StrideSkipUnitTests=true `
71+
-p:StrideSkipAutoPack=true
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build Visual Studio Package
2+
3+
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]
16+
workflow_dispatch:
17+
inputs:
18+
build-type:
19+
description: Build Configuration
20+
default: Debug
21+
type: choice
22+
options:
23+
- Debug
24+
# - Release # has a bug and cannot build
25+
workflow_call:
26+
inputs:
27+
build-type:
28+
default: Debug
29+
type: string
30+
31+
jobs:
32+
#
33+
# Build Visual Studio Package
34+
#
35+
VS-Package:
36+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
37+
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
38+
runs-on: windows-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
with:
42+
lfs: true
43+
- uses: actions/setup-dotnet@v4
44+
with:
45+
dotnet-version: '8.0.x'
46+
- uses: microsoft/setup-msbuild@v2
47+
- name: Build
48+
run: |
49+
msbuild build\Stride.VisualStudio.sln `
50+
-restore -m:1 -nr:false `
51+
-v:m -p:WarningLevel=0 `
52+
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
53+
-p:StrideSkipUnitTests=true `
54+
-p:StrideSkipAutoPack=true

0 commit comments

Comments
 (0)