Skip to content

Commit 8cfc1bf

Browse files
committed
feat: CI build for Linux (WIP)
1 parent 616d5af commit 8cfc1bf

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/build-linux.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build (Linux)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
build-type:
7+
description: Build in Release or Debug?
8+
required: true
9+
default: Debug
10+
type: choice
11+
options:
12+
- Debug
13+
- Release
14+
workflow_call:
15+
inputs:
16+
build-type:
17+
required: true
18+
default: Debug
19+
type: string
20+
21+
jobs:
22+
#
23+
# Build Stride for Linux
24+
#
25+
Windows:
26+
name: Build (${{ github.event.inputs.build-type || inputs.build-type }})
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 1
32+
- uses: actions/setup-dotnet@v4
33+
with:
34+
dotnet-version: '8.0.x'
35+
- name: Build Stride
36+
run: dotnet build build/Stride.Runtime.sln -m:1 -nr:false -v:m -p:StridePlatforms=Linux -p:StridePlatform=Linux -p:StrideGraphicsApis=OpenGL -p:StrideSkipUnitTests=true -p:StrideSkipAutoPack=true
37+

.github/workflows/main.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,19 @@ jobs:
2222
#
2323
# Build Stride for Windows
2424
#
25-
Windows-Debug:
25+
# Windows-Debug:
26+
# needs: Setup
27+
# uses: ./.github/workflows/build-windows.yml
28+
# secrets: inherit
29+
# with:
30+
# build-type: Debug
31+
32+
#
33+
# Build Stride for Linux
34+
#
35+
Windows-Linux:
2636
needs: Setup
27-
uses: ./.github/workflows/build-windows.yml
37+
uses: ./.github/workflows/build-linux.yml
2838
secrets: inherit
2939
with:
3040
build-type: Debug

0 commit comments

Comments
 (0)