From 15c83407dae0c859802883b8751b0dfd1dd5e717 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 10:32:23 +0200 Subject: [PATCH 01/10] Cleanup --- .github/workflows/build-assembly-processor.yml | 5 ++--- .github/workflows/build-linux.yml | 5 ++--- .github/workflows/build-vs-package.yml | 5 ++--- .github/workflows/build-windows.yml | 5 ++--- .github/workflows/test-windows.yml | 13 +++++-------- 5 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-assembly-processor.yml b/.github/workflows/build-assembly-processor.yml index a01c465969..0d2f8e4645 100644 --- a/.github/workflows/build-assembly-processor.yml +++ b/.github/workflows/build-assembly-processor.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: build-type: - description: Build Configuration? + description: Build Configuration default: Debug type: choice options: @@ -37,5 +37,4 @@ jobs: -v:m -p:WarningLevel=0 ` -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` -p:StrideSkipUnitTests=true ` - -p:StrideSkipAutoPack=true ` - -p:StrideEnableCodeAnalysis=true + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index a95e37d5bc..1ca15e17c2 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: build-type: - description: Build Configuration? + description: Build Configuration default: Debug type: choice options: @@ -50,5 +50,4 @@ jobs: -p:StridePlatforms=Linux ` -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} ` -p:StrideSkipUnitTests=true ` - -p:StrideSkipAutoPack=true ` - -p:StrideEnableCodeAnalysis=true + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-vs-package.yml b/.github/workflows/build-vs-package.yml index e880ee27c7..26413b2eab 100644 --- a/.github/workflows/build-vs-package.yml +++ b/.github/workflows/build-vs-package.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: build-type: - description: Build Configuration? + description: Build Configuration default: Debug type: choice options: @@ -38,5 +38,4 @@ jobs: -v:m -p:WarningLevel=0 ` -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` -p:StrideSkipUnitTests=true ` - -p:StrideSkipAutoPack=true ` - -p:StrideEnableCodeAnalysis=true + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e50c7c88a9..e086e0c2ae 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: build-type: - description: Build Configuration? + description: Build Configuration default: Debug type: choice options: @@ -39,5 +39,4 @@ jobs: -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` -p:StridePlatforms=Windows ` -p:StrideSkipUnitTests=true ` - -p:StrideSkipAutoPack=true ` - -p:StrideEnableCodeAnalysis=true + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 0866d6e36d..c9d9040621 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -4,16 +4,14 @@ on: workflow_dispatch: inputs: build-type: - description: Build in Release or Debug? - required: true + description: Build default: Release type: choice options: - Debug - Release test-category: - description: Which category of tests? - required: false + description: Category of tests default: Simple type: choice options: @@ -23,11 +21,9 @@ on: workflow_call: inputs: build-type: - required: true default: Release type: string test-category: - required: false default: Simple type: string @@ -35,8 +31,8 @@ jobs: # # Test Stride on Windows # - Windows: - name: Test (${{ github.event.inputs.test-category || inputs.test-category }}, ${{ github.event.inputs.build-type || inputs.build-type }}) + Windows-Tests: + name: Test (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.test-category || inputs.test-category }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -52,6 +48,7 @@ jobs: -restore -m:1 -nr:false ` -v:m -p:WarningLevel=0 ` -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` + -p:StridePlatforms=Windows ` -p:StrideGraphicsApis=Direct3D11 - name: Test run: | From 1f2b5903af6a220df5bfef29eec6ad549180ba18 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 10:37:32 +0200 Subject: [PATCH 02/10] [CI] Only builds on push --- .github/workflows/main.yml | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89ca690845..7ff6a6fa21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,44 +13,22 @@ on: - '!**/.editorconfig' - '!**/.gitignore' - '!**/*.md' - pull_request: - branches: - - master - paths: - - '.github/workflows/**' - - 'build/**' - - 'deps/**' - - 'sources/**' - - '!**/.all-contributorsrc' - - '!**/.editorconfig' - - '!**/.gitignore' - - '!**/*.md' - types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: jobs: - Setup: - if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false }} - runs-on: ubuntu-latest - steps: - - run: exit 0 - Linux-Debug: - needs: Setup uses: ./.github/workflows/build-linux.yml secrets: inherit with: build-type: Debug Windows-Debug: - needs: Setup uses: ./.github/workflows/build-windows.yml secrets: inherit with: build-type: Debug Windows-Tests: - needs: Setup uses: ./.github/workflows/test-windows.yml secrets: inherit with: From 7108348a101a364adc43de192a3daab7dcbb1363 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 10:36:09 +0200 Subject: [PATCH 03/10] [CI] Build matrix for Linux and Windows --- ...uild-linux.yml => build-linux-runtime.yml} | 6 +- ...-windows.yml => build-windows-runtime.yml} | 24 ++++++-- .github/workflows/main.yml | 31 ++++++++--- .github/workflows/test-linux.yml | 55 +++++++++++++++++++ 4 files changed, 100 insertions(+), 16 deletions(-) rename .github/workflows/{build-linux.yml => build-linux-runtime.yml} (94%) rename .github/workflows/{build-windows.yml => build-windows-runtime.yml} (60%) create mode 100644 .github/workflows/test-linux.yml diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux-runtime.yml similarity index 94% rename from .github/workflows/build-linux.yml rename to .github/workflows/build-linux-runtime.yml index 1ca15e17c2..65a31390a1 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux-runtime.yml @@ -1,4 +1,4 @@ -name: Build Linux +name: Build Linux Runtime on: workflow_dispatch: @@ -28,9 +28,9 @@ on: jobs: # - # Build Stride for Linux + # Build Stride Runtime for Linux # - Linux: + Linux-Runtime: name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }}) runs-on: windows-latest steps: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows-runtime.yml similarity index 60% rename from .github/workflows/build-windows.yml rename to .github/workflows/build-windows-runtime.yml index e086e0c2ae..d9c326a89b 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows-runtime.yml @@ -1,4 +1,4 @@ -name: Build Windows +name: Build Windows Runtime on: workflow_dispatch: @@ -10,18 +10,31 @@ on: options: - Debug - Release + graphics-api: + description: Graphics API + default: Direct3D11 + type: choice + options: + - Direct3D11 + - Direct3D12 + - OpenGL + - OpenGLES + - Vulkan workflow_call: inputs: build-type: default: Debug type: string + graphics-api: + default: Direct3D11 + type: string jobs: # - # Build Stride for Windows + # Build Stride Runtime for Windows # - Windows: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + Windows-Runtime: + name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -33,10 +46,11 @@ jobs: - uses: microsoft/setup-msbuild@v2 - name: Build run: | - msbuild build\Stride.sln ` + 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:StridePlatforms=Windows ` + -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} ` -p:StrideSkipUnitTests=true ` -p:StrideSkipAutoPack=true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ff6a6fa21..4780e65c93 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,21 +16,36 @@ on: workflow_dispatch: jobs: - Linux-Debug: - uses: ./.github/workflows/build-linux.yml + Linux-Runtime: + strategy: + matrix: + build-type: [Release] + graphics-api: [OpenGL, Vulkan] + uses: ./.github/workflows/build-linux-runtime.yml secrets: inherit with: - build-type: Debug + build-type: ${{ matrix.build-type }} + graphics-api: ${{ matrix.graphics-api }} - Windows-Debug: - uses: ./.github/workflows/build-windows.yml + Windows-Runtime: + strategy: + matrix: + build-type: [Release] + graphics-api: [Direct3D11, Direct3D12, OpenGL, OpenGLES, Vulkan] + uses: ./.github/workflows/build-windows-runtime.yml secrets: inherit with: - build-type: Debug + build-type: ${{ matrix.build-type }} + graphics-api: ${{ matrix.graphics-api }} Windows-Tests: + needs: Windows-Runtime + strategy: + matrix: + build-type: [Release] + test-category: [Simple] uses: ./.github/workflows/test-windows.yml secrets: inherit with: - build-type: Release - test-category: Simple + build-type: ${{ matrix.build-type }} + test-category: ${{ matrix.test-category }} diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml new file mode 100644 index 0000000000..5e5b1f6427 --- /dev/null +++ b/.github/workflows/test-linux.yml @@ -0,0 +1,55 @@ +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 + +jobs: + # + # Test Stride on Linux + # + Linux-Tests: + name: Test (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.test-category || inputs.test-category }}) + 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 }}.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 }}.slnf ` + --no-build ` + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} From 6e6b1bc0075acdfb1fd96fa2b748a88c0c7921f5 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 10:37:01 +0200 Subject: [PATCH 04/10] [CI] Add builds for assembly processor and VS package --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4780e65c93..29d07d54fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,26 @@ on: workflow_dispatch: jobs: + ### Misc. ### + Assembly-Processor: + strategy: + matrix: + build-type: [Release] + uses: ./.github/workflows/build-assembly-processor.yml + secrets: inherit + with: + build-type: ${{ matrix.build-type }} + + VS-Package: + strategy: + matrix: + build-type: [Debug] # Release has a bug and cannot build + uses: ./.github/workflows/build-vs-package.yml + secrets: inherit + with: + build-type: ${{ matrix.build-type }} + + ### Runtimes ### Linux-Runtime: strategy: matrix: @@ -38,6 +58,7 @@ jobs: build-type: ${{ matrix.build-type }} graphics-api: ${{ matrix.graphics-api }} + ### Tests ### Windows-Tests: needs: Windows-Runtime strategy: From a25aafc3f7015d8e832befd9c7cc707be7caff78 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 10:49:02 +0200 Subject: [PATCH 05/10] [CI] Add builds for Android and iOS --- .github/workflows/build-android.yml | 42 +++++++++++++++++++++++++++++ .github/workflows/build-ios.yml | 42 +++++++++++++++++++++++++++++ .github/workflows/main.yml | 18 +++++++++++++ 3 files changed, 102 insertions(+) create mode 100644 .github/workflows/build-android.yml create mode 100644 .github/workflows/build-ios.yml diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml new file mode 100644 index 0000000000..22320f4cb9 --- /dev/null +++ b/.github/workflows/build-android.yml @@ -0,0 +1,42 @@ +name: Build Android Runtime + +on: + 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: + name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + 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 }} ` + -p:StridePlatforms=Android ` + -p:StrideSkipUnitTests=true ` + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml new file mode 100644 index 0000000000..fc979e718f --- /dev/null +++ b/.github/workflows/build-ios.yml @@ -0,0 +1,42 @@ +name: Build iOS Runtime + +on: + 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: + name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + 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 }} ` + -p:StridePlatforms=iOS ` + -p:StrideSkipUnitTests=true ` + -p:StrideSkipAutoPack=true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29d07d54fd..2485199b2c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,6 +36,24 @@ jobs: build-type: ${{ matrix.build-type }} ### Runtimes ### + Android-Runtime: + strategy: + matrix: + build-type: [Release] + uses: ./.github/workflows/build-android.yml + secrets: inherit + with: + build-type: ${{ matrix.build-type }} + + iOS-Runtime: + strategy: + matrix: + build-type: [Release] + uses: ./.github/workflows/build-ios.yml + secrets: inherit + with: + build-type: ${{ matrix.build-type }} + Linux-Runtime: strategy: matrix: From 314c5504e60ec4e6a20a81bc832b62eb4692b600 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 11:02:15 +0200 Subject: [PATCH 06/10] [CI] exclude crowdin.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2485199b2c..e3d4468b5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,7 @@ on: - '!**/.editorconfig' - '!**/.gitignore' - '!**/*.md' + - '!crowdin.yml' workflow_dispatch: jobs: From 29c26b31d39fce293c14c78a5d818bbe0fbf353d Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 11:06:36 +0200 Subject: [PATCH 07/10] Add job to build the full solution on Windows --- .github/workflows/build-windows-full.yml | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build-windows-full.yml diff --git a/.github/workflows/build-windows-full.yml b/.github/workflows/build-windows-full.yml new file mode 100644 index 0000000000..f398ded376 --- /dev/null +++ b/.github/workflows/build-windows-full.yml @@ -0,0 +1,43 @@ +name: Build Windows (Full) + +on: + 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 for Windows + # + Windows: + name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + 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.sln ` + -restore -m:1 -nr:false ` + -v:m -p:WarningLevel=0 ` + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` + -p:StridePlatforms=Windows ` + -p:StrideGraphicsApiDependentBuildAll=true ` + -p:StrideSkipUnitTests=true ` + -p:StrideSkipAutoPack=true From fda23ace1a4bff90afdaaba7574988b2627a21bf Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 12:00:58 +0200 Subject: [PATCH 08/10] [CI] Disable Android build (ndk linking error) --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3d4468b5e..35813c2aba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,14 +37,14 @@ jobs: build-type: ${{ matrix.build-type }} ### Runtimes ### - Android-Runtime: - strategy: - matrix: - build-type: [Release] - uses: ./.github/workflows/build-android.yml - secrets: inherit - with: - build-type: ${{ matrix.build-type }} + # Android-Runtime: + # strategy: + # matrix: + # build-type: [Release] + # uses: ./.github/workflows/build-android.yml + # secrets: inherit + # with: + # build-type: ${{ matrix.build-type }} iOS-Runtime: strategy: From 4815ed702be7801b720ff003e95379effd946998 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 13:32:42 +0200 Subject: [PATCH 09/10] Trigger specific workflows on PR events --- .github/workflows/build-android.yml | 21 +++++++++++++++-- .../workflows/build-assembly-processor.yml | 17 ++++++++++++-- .github/workflows/build-ios.yml | 21 +++++++++++++++-- .github/workflows/build-linux-runtime.yml | 23 ++++++++++++++++--- .github/workflows/build-vs-package.yml | 16 +++++++++++-- .github/workflows/build-windows-full.yml | 16 +++++++++++-- .github/workflows/build-windows-runtime.yml | 23 ++++++++++++++++--- .github/workflows/test-windows.yml | 10 ++++---- build/Stride.Runtime.sln | 9 +------- 9 files changed, 127 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 22320f4cb9..da4ae9242f 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -1,6 +1,23 @@ 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: @@ -21,7 +38,7 @@ jobs: # Build Stride Runtime for Android # Android-Runtime: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -36,7 +53,7 @@ jobs: 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 }} ` + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} ` -p:StridePlatforms=Android ` -p:StrideSkipUnitTests=true ` -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-assembly-processor.yml b/.github/workflows/build-assembly-processor.yml index 0d2f8e4645..fb6951f8d9 100644 --- a/.github/workflows/build-assembly-processor.yml +++ b/.github/workflows/build-assembly-processor.yml @@ -1,6 +1,19 @@ 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: @@ -21,7 +34,7 @@ jobs: # Build Assembly Processor # Assembly-Processor: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -35,6 +48,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 diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index fc979e718f..3408f5c4ac 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -1,6 +1,23 @@ 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: @@ -21,7 +38,7 @@ jobs: # Build Stride Runtime for iOS # iOS-Runtime: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -36,7 +53,7 @@ jobs: 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 }} ` + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} ` -p:StridePlatforms=iOS ` -p:StrideSkipUnitTests=true ` -p:StrideSkipAutoPack=true diff --git a/.github/workflows/build-linux-runtime.yml b/.github/workflows/build-linux-runtime.yml index 65a31390a1..e1b51222f9 100644 --- a/.github/workflows/build-linux-runtime.yml +++ b/.github/workflows/build-linux-runtime.yml @@ -1,6 +1,23 @@ 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: @@ -31,7 +48,7 @@ jobs: # Build Stride Runtime for Linux # Linux-Runtime: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }}) + 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 @@ -46,8 +63,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 diff --git a/.github/workflows/build-vs-package.yml b/.github/workflows/build-vs-package.yml index 26413b2eab..d298fe450b 100644 --- a/.github/workflows/build-vs-package.yml +++ b/.github/workflows/build-vs-package.yml @@ -1,6 +1,18 @@ 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: @@ -21,7 +33,7 @@ jobs: # Build Visual Studio Package # VS-Package: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -36,6 +48,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 diff --git a/.github/workflows/build-windows-full.yml b/.github/workflows/build-windows-full.yml index f398ded376..7cef08e50f 100644 --- a/.github/workflows/build-windows-full.yml +++ b/.github/workflows/build-windows-full.yml @@ -1,6 +1,18 @@ 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: @@ -21,7 +33,7 @@ jobs: # Build Stride for Windows # Windows: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -36,7 +48,7 @@ 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 ` diff --git a/.github/workflows/build-windows-runtime.yml b/.github/workflows/build-windows-runtime.yml index d9c326a89b..07bb58f3f6 100644 --- a/.github/workflows/build-windows-runtime.yml +++ b/.github/workflows/build-windows-runtime.yml @@ -1,6 +1,23 @@ name: Build Windows Runtime on: + pull_request: + paths: + - '.github/workflows/build-windows-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: @@ -34,7 +51,7 @@ jobs: # Build Stride Runtime for Windows # Windows-Runtime: - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }}) + name: Build (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -49,8 +66,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=Windows ` - -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} ` + -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'Direct3D11' }} ` -p:StrideSkipUnitTests=true ` -p:StrideSkipAutoPack=true diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index c9d9040621..5f68096d58 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -32,7 +32,7 @@ jobs: # Test Stride on Windows # Windows-Tests: - name: Test (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.test-category || inputs.test-category }}) + name: Test (${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }}, ${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}) runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -44,14 +44,14 @@ jobs: - uses: microsoft/setup-msbuild@v2 - name: Build run: | - msbuild build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category }}.slnf ` + msbuild 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:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} ` -p:StridePlatforms=Windows ` -p:StrideGraphicsApis=Direct3D11 - name: Test run: | - dotnet test build\Stride.Tests.${{ github.event.inputs.test-category || inputs.test-category }}.slnf ` + 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 }} + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} diff --git a/build/Stride.Runtime.sln b/build/Stride.Runtime.sln index c23856c920..8171aceb06 100644 --- a/build/Stride.Runtime.sln +++ b/build/Stride.Runtime.sln @@ -8,12 +8,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "20-StrideRuntime", "20-Stri EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Targets.Private", "00-Targets.Private", "{97978864-95DD-43A6-9159-AA1C881BE99F}" ProjectSection(SolutionItems) = preProject - ..\sources\native\Stride.Native.targets = ..\sources\native\Stride.Native.targets ..\sources\targets\Stride.Core.PostSettings.Dependencies.targets = ..\sources\targets\Stride.Core.PostSettings.Dependencies.targets ..\sources\targets\Stride.Core.props = ..\sources\targets\Stride.Core.props ..\sources\targets\Stride.Core.targets = ..\sources\targets\Stride.Core.targets ..\sources\targets\Stride.GraphicsApi.Dev.targets = ..\sources\targets\Stride.GraphicsApi.Dev.targets ..\sources\targets\Stride.GraphicsApi.PackageReference.targets = ..\sources\targets\Stride.GraphicsApi.PackageReference.targets + ..\sources\native\Stride.Native.targets = ..\sources\native\Stride.Native.targets ..\sources\targets\Stride.PackageVersion.targets = ..\sources\targets\Stride.PackageVersion.targets ..\sources\targets\Stride.props = ..\sources\targets\Stride.props ..\sources\targets\Stride.targets = ..\sources\targets\Stride.targets @@ -30,8 +30,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "00-Config", "00-Config", "{ ..\sources\shared\SharedAssemblyInfo.cs = ..\sources\shared\SharedAssemblyInfo.cs EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Stride.Shared", "Stride.Shared", "{1AC70118-C90F-4EC6-9D8B-C628BDF900F7}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "21-StrideRuntime.Tests", "21-StrideRuntime.Tests", "{A7ED9F01-7D78-4381-90A6-D50E51C17250}" EndProject 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", "..\ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Native", "..\sources\engine\Stride.Native\Stride.Native.csproj", "{1DBBC150-F085-43EF-B41D-27C72D133770}" EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Stride.Refactor", "..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.shproj", "{B33E576F-2279-4BFC-A438-D9B84343B56B}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.VirtualReality", "..\sources\engine\Stride.VirtualReality\Stride.VirtualReality.csproj", "{53782603-3096-40C2-ABD3-F8F311BAE4BE}" EndProject 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 HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {1AC70118-C90F-4EC6-9D8B-C628BDF900F7} = {4C142567-C42B-40F5-B092-798882190209} {C121A566-555E-42B9-9B0A-1696529A9088} = {4C142567-C42B-40F5-B092-798882190209} {FB06C76A-6BB7-40BE-9AFA-FEC13B045FB5} = {4C142567-C42B-40F5-B092-798882190209} {F2D52EDB-BC17-4243-B06D-33CD20F87A7F} = {10D145AF-C8AE-428F-A80F-CA1B591D0DB2} @@ -333,7 +328,6 @@ Global {F32FDA80-B6DD-47A8-8681-437E2C0D3F31} = {4C142567-C42B-40F5-B092-798882190209} {B84ECB15-5E3F-4BD1-AB87-333BAE9B70F9} = {A7ED9F01-7D78-4381-90A6-D50E51C17250} {1DBBC150-F085-43EF-B41D-27C72D133770} = {4C142567-C42B-40F5-B092-798882190209} - {B33E576F-2279-4BFC-A438-D9B84343B56B} = {1AC70118-C90F-4EC6-9D8B-C628BDF900F7} {53782603-3096-40C2-ABD3-F8F311BAE4BE} = {4C142567-C42B-40F5-B092-798882190209} {FBE1FA7B-E699-4BB2-9C8F-41F4C9F3F088} = {4C142567-C42B-40F5-B092-798882190209} {B4EABB0D-E495-405C-B7B1-E2A7A3711AF5} = {FC791F56-C1F1-4C41-A193-868D8197F8E2} @@ -345,7 +339,6 @@ Global SolutionGuid = {FF877973-604D-4EA7-B5F5-A129961F9EF2} EndGlobalSection GlobalSection(SharedMSBuildProjectFiles) = preSolution - ..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{b33e576f-2279-4bfc-a438-d9b84343b56b}*SharedItemsImports = 13 ..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{c121a566-555e-42b9-9b0a-1696529a9088}*SharedItemsImports = 5 ..\sources\shared\Stride.Core.ShellHelper\Stride.Core.ShellHelper.projitems*{e8b3553f-a79f-4e50-b75b-acee771c320c}*SharedItemsImports = 5 ..\sources\engine\Stride.Shared\Refactor\Stride.Refactor.projitems*{fb06c76a-6bb7-40be-9afa-fec13b045fb5}*SharedItemsImports = 5 From 5044955662fdfdbcd6bbbe32d88ea0a88be71004 Mon Sep 17 00:00:00 2001 From: Nicolas Musset Date: Wed, 21 May 2025 13:45:38 +0200 Subject: [PATCH 10/10] Don't trigger PR workflows on drafts --- .github/workflows/build-android.yml | 1 + .github/workflows/build-assembly-processor.yml | 1 + .github/workflows/build-ios.yml | 1 + .github/workflows/build-linux-runtime.yml | 1 + .github/workflows/build-vs-package.yml | 1 + .github/workflows/build-windows-full.yml | 1 + .github/workflows/build-windows-runtime.yml | 1 + .github/workflows/test-linux.yml | 1 + .github/workflows/test-windows.yml | 13 +++++++++++++ 9 files changed, 21 insertions(+) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index da4ae9242f..b2141e4c31 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -38,6 +38,7 @@ 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: diff --git a/.github/workflows/build-assembly-processor.yml b/.github/workflows/build-assembly-processor.yml index fb6951f8d9..9a00e4194e 100644 --- a/.github/workflows/build-assembly-processor.yml +++ b/.github/workflows/build-assembly-processor.yml @@ -34,6 +34,7 @@ jobs: # Build Assembly Processor # Assembly-Processor: + 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: diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index 3408f5c4ac..9ada33e0a1 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -38,6 +38,7 @@ 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: diff --git a/.github/workflows/build-linux-runtime.yml b/.github/workflows/build-linux-runtime.yml index e1b51222f9..531768b08f 100644 --- a/.github/workflows/build-linux-runtime.yml +++ b/.github/workflows/build-linux-runtime.yml @@ -48,6 +48,7 @@ jobs: # Build Stride Runtime for Linux # 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: diff --git a/.github/workflows/build-vs-package.yml b/.github/workflows/build-vs-package.yml index d298fe450b..f89b051ad0 100644 --- a/.github/workflows/build-vs-package.yml +++ b/.github/workflows/build-vs-package.yml @@ -33,6 +33,7 @@ jobs: # Build Visual Studio Package # VS-Package: + 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: diff --git a/.github/workflows/build-windows-full.yml b/.github/workflows/build-windows-full.yml index 7cef08e50f..c1f6ce681e 100644 --- a/.github/workflows/build-windows-full.yml +++ b/.github/workflows/build-windows-full.yml @@ -33,6 +33,7 @@ jobs: # Build Stride for Windows # Windows: + 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: diff --git a/.github/workflows/build-windows-runtime.yml b/.github/workflows/build-windows-runtime.yml index 07bb58f3f6..6d0ded05a7 100644 --- a/.github/workflows/build-windows-runtime.yml +++ b/.github/workflows/build-windows-runtime.yml @@ -51,6 +51,7 @@ jobs: # Build Stride Runtime for Windows # Windows-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 || 'Direct3D11' }}) runs-on: windows-latest steps: diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 5e5b1f6427..551819bcce 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -31,6 +31,7 @@ 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 }}) runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index 5f68096d58..449a83eb6e 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -1,6 +1,18 @@ name: Test Windows on: + pull_request: + paths: + - '.github/workflows/test-windows.yml' + - 'build/Stride.Tests.*.slnf' + - 'deps/**' + - 'sources/**' + - '!**/.all-contributorsrc' + - '!**/.editorconfig' + - '!**/.gitignore' + - '!**/*.md' + - '!crowdin.yml' + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: inputs: build-type: @@ -32,6 +44,7 @@ jobs: # Test Stride on Windows # Windows-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 || 'Debug' }}, ${{ github.event.inputs.test-category || inputs.test-category || 'Simple' }}) runs-on: windows-latest steps: