File tree Expand file tree Collapse file tree 2 files changed +69
-2
lines changed
Expand file tree Collapse file tree 2 files changed +69
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Build Avalonia Editor
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+ platform :
15+ description : Build on Linux or Windows?
16+ required : true
17+ default : Windows
18+ type : choice
19+ options :
20+ - Windows
21+ - Linux
22+ workflow_call :
23+ inputs :
24+ build-type :
25+ required : true
26+ default : Debug
27+ type : string
28+
29+ jobs :
30+ #
31+ # Build Avalonia Editor on Linux
32+ #
33+ Linux :
34+ name : Linux (${{ github.event.inputs.build-type || inputs.build-type }})
35+ if : ${{ github.event.inputs.platform == 'Linux' || inputs.platform == 'Linux' }}
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+ with :
40+ lfs : true
41+ - uses : actions/setup-dotnet@v4
42+ with :
43+ dotnet-version : ' 8.0.x'
44+ - name : Install dependencies
45+ run : |
46+ sudo apt-get install clang
47+ sudo apt-get install lld
48+ - name : Build
49+ run : dotnet build build/Stride.Editor.Avalonia.slnf -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 -p:StrideSkipUnitTests=true -p:StrideSkipAutoPack=true -p:StrideEnableCodeAnalysis=true
50+
51+ #
52+ # Build Avalonia Editor on Windows
53+ #
54+ Windows :
55+ name : Windows (${{ github.event.inputs.build-type || inputs.build-type }})
56+ if : ${{ github.event.inputs.platform == 'Windows' || inputs.platform == 'Windows' }}
57+ runs-on : windows-latest
58+ steps :
59+ - uses : actions/checkout@v4
60+ with :
61+ lfs : true
62+ - uses : actions/setup-dotnet@v4
63+ with :
64+ dotnet-version : ' 8.0.x'
65+ - uses : microsoft/setup-msbuild@v2
66+ - name : Build
67+ run : msbuild build\Stride.build -t:BuildAvalonia -m:1 -nr:false -v:m -p:WarningLevel=0 -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} -p:StridePlatforms=Windows -p:StrideGraphicsApis=OpenGL -p:StrideSkipUnitTests=true -p:StrideSkipAutoPack=true -p:StrideEnableCodeAnalysis=true
Original file line number Diff line number Diff line change @@ -159,10 +159,10 @@ Example of use:
159159 <Target Name =" BuildAvalonia" >
160160 <PropertyGroup >
161161 <StrideSolution >$(StrideSolution).Editor.Avalonia</StrideSolution >
162- <StridePlatforms >Linux</ StridePlatforms >
162+ <StrideGraphicsApis Condition = " '$(StrideGraphicsApis)' == '' " >OpenGL</ StrideGraphicsApis >
163163 </PropertyGroup >
164164 <MSBuild Targets =" Restore" Projects =" $(StrideSolution).slnf" Properties =" StridePlatforms=$(StridePlatforms);StrideSolution=$(StrideSolution);StrideGraphicsApiDependentBuildAll=$(StrideGraphicsApiDependentBuildAll)" />
165- <MSBuild Targets =" Build" Projects =" $(StrideSolution).slnf" Properties =" $(BuildProperties);Configuration=Debug;StridePlatforms=$(StridePlatforms);StrideGraphicsApis=OpenGL ;StrideSkipAutoPack=true;StrideSkipUnitTests=true;StrideGraphicsApiDependentBuildAll=$(StrideGraphicsApiDependentBuildAll)" />
165+ <MSBuild Targets =" Build" Projects =" $(StrideSolution).slnf" Properties =" $(BuildProperties);Configuration=Debug;StridePlatforms=$(StridePlatforms);StrideGraphicsApis=$(StrideGraphicsApis) ;StrideSkipAutoPack=true;StrideSkipUnitTests=true;StrideGraphicsApiDependentBuildAll=$(StrideGraphicsApiDependentBuildAll)" />
166166 </Target >
167167
168168 <Target Name =" BuildWpf" >
You can’t perform that action at this time.
0 commit comments