Skip to content
Merged
60 changes: 60 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build Android Runtime

on:
pull_request:
paths:
- '.github/workflows/build-android.yml'
- 'build/Stride.Android.sln'
# - 'deps/**'
# - 'sources/core/**'
# - 'sources/engine/**'
# - 'sources/native/**'
# - 'sources/shaders/**'
# - 'sources/shared/**'
# - 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
- Release
workflow_call:
inputs:
build-type:
default: Debug
type: string

jobs:
#
# Build Stride Runtime for Android
#
Android-Runtime:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: microsoft/setup-msbuild@v2
- name: Build
run: |
msbuild build\Stride.Android.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Android `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true
23 changes: 18 additions & 5 deletions .github/workflows/build-assembly-processor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
name: Build Assembly Processor

on:
pull_request:
paths:
- '.github/workflows/build-assembly-processor.yml'
- 'build/Stride.AssemblyProcessor.sln'
- 'sources/core/Stride.Core/**'
- 'sources/core/Stride.Core.AssemblyProcessor/**'
- 'sources/core/Stride.Core.AssemblyProcessor.Tests/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration?
description: Build Configuration
default: Debug
type: choice
options:
Expand All @@ -21,7 +34,8 @@ jobs:
# Build Assembly Processor
#
Assembly-Processor:
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +49,6 @@ jobs:
dotnet build build\Stride.AssemblyProcessor.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true `
-p:StrideEnableCodeAnalysis=true
-p:StrideSkipAutoPack=true
60 changes: 60 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build iOS Runtime

on:
pull_request:
paths:
- '.github/workflows/build-ios.yml'
- 'build/Stride.iOS.sln'
- 'deps/**'
- 'sources/core/**'
- 'sources/engine/**'
- 'sources/native/**'
- 'sources/shaders/**'
- 'sources/shared/**'
- 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
- Release
workflow_call:
inputs:
build-type:
default: Debug
type: string

jobs:
#
# Build Stride Runtime for iOS
#
iOS-Runtime:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: microsoft/setup-msbuild@v2
- name: Build
run: |
msbuild build\Stride.iOS.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=iOS `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true
58 changes: 58 additions & 0 deletions .github/workflows/build-launcher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Launcher

on:
pull_request:
paths:
- '.github/workflows/build-launcher.yml'
- 'build/Stride.Launcher.sln'
- 'sources/core/**'
- 'sources/launcher/**'
- 'sources/presentation/**'
- 'sources/shared/**'
- 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration
default: Debug
type: choice
options:
- Debug
- Release
workflow_call:
inputs:
build-type:
default: Debug
type: string

jobs:
#
# Build Stride Runtime for Windows
#
Launcher:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: microsoft/setup-msbuild@v2
- name: Build
run: |
msbuild build\Stride.Launcher.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Windows `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
name: Build Linux
name: Build Linux Runtime

on:
pull_request:
paths:
- '.github/workflows/build-linux-runtime.yml'
- 'build/Stride.Runtime.sln'
- 'deps/**'
- 'sources/core/**'
- 'sources/engine/**'
- 'sources/native/**'
- 'sources/shaders/**'
- 'sources/shared/**'
- 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration?
description: Build Configuration
default: Debug
type: choice
options:
Expand All @@ -28,10 +45,11 @@ on:

jobs:
#
# Build Stride for Linux
# Build Stride Runtime for Linux
#
Linux:
name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }})
Linux-Runtime:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -46,9 +64,8 @@ jobs:
msbuild build\Stride.Runtime.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Linux `
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} `
-p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true `
-p:StrideEnableCodeAnalysis=true
-p:StrideSkipAutoPack=true
22 changes: 17 additions & 5 deletions .github/workflows/build-vs-package.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: Build Visual Studio Package

on:
pull_request:
paths:
- '.github/workflows/build-vs-package.yml'
- 'build/Stride.VisualStudio.sln'
- 'sources/tools/Stride.VisualStudio.*/**'
- 'sources/targets/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration?
description: Build Configuration
default: Debug
type: choice
options:
Expand All @@ -21,7 +33,8 @@ jobs:
# Build Visual Studio Package
#
VS-Package:
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,7 +49,6 @@ jobs:
msbuild build\Stride.VisualStudio.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true `
-p:StrideEnableCodeAnalysis=true
-p:StrideSkipAutoPack=true
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: Build Windows
name: Build Windows (Full)

on:
pull_request:
paths:
- '.github/workflows/build-windows-full.yml'
- 'build/Stride.sln'
- 'deps/**'
- 'sources/**'
- '!**/.all-contributorsrc'
- '!**/.editorconfig'
- '!**/.gitignore'
- '!**/*.md'
- '!crowdin.yml'
types: [opened, synchronize, reopened, ready_for_review]
workflow_dispatch:
inputs:
build-type:
description: Build Configuration?
description: Build Configuration
default: Debug
type: choice
options:
Expand All @@ -21,7 +33,8 @@ jobs:
# Build Stride for Windows
#
Windows:
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' || github.event.pull_request.draft == false }}
name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }})
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,8 +49,8 @@ jobs:
msbuild build\Stride.sln `
-restore -m:1 -nr:false `
-v:m -p:WarningLevel=0 `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} `
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
-p:StridePlatforms=Windows `
-p:StrideGraphicsApiDependentBuildAll=true `
-p:StrideSkipUnitTests=true `
-p:StrideSkipAutoPack=true `
-p:StrideEnableCodeAnalysis=true
-p:StrideSkipAutoPack=true
Loading
Loading