|
1 | | -name: Build Linux |
| 1 | +name: Build Linux Runtime |
2 | 2 |
|
3 | 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] |
4 | 21 | workflow_dispatch: |
5 | 22 | inputs: |
6 | 23 | build-type: |
7 | | - description: Build Configuration? |
| 24 | + description: Build Configuration |
8 | 25 | default: Debug |
9 | 26 | type: choice |
10 | 27 | options: |
|
28 | 45 |
|
29 | 46 | jobs: |
30 | 47 | # |
31 | | - # Build Stride for Linux |
| 48 | + # Build Stride Runtime for Linux |
32 | 49 | # |
33 | | - Linux: |
34 | | - name: Build (${{ github.event.inputs.build-type || inputs.build-type }}, ${{ github.event.inputs.graphics-api || inputs.graphics-api }}) |
| 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' }}) |
35 | 53 | runs-on: windows-latest |
36 | 54 | steps: |
37 | 55 | - uses: actions/checkout@v4 |
|
46 | 64 | msbuild build\Stride.Runtime.sln ` |
47 | 65 | -restore -m:1 -nr:false ` |
48 | 66 | -v:m -p:WarningLevel=0 ` |
49 | | - -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} ` |
| 67 | + -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} ` |
50 | 68 | -p:StridePlatforms=Linux ` |
51 | | - -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api }} ` |
| 69 | + -p:StrideGraphicsApis=${{ github.event.inputs.graphics-api || inputs.graphics-api || 'OpenGL' }} ` |
52 | 70 | -p:StrideSkipUnitTests=true ` |
53 | | - -p:StrideSkipAutoPack=true ` |
54 | | - -p:StrideEnableCodeAnalysis=true |
| 71 | + -p:StrideSkipAutoPack=true |
0 commit comments