@@ -2,46 +2,40 @@ name: Build StarEngine
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [ "main" ]
76 pull_request :
8- branches :
9- - main
7+ branches : [ "main" ]
8+
9+ env :
10+ SOLUTION_FILE_PATH : StarEngine.sln
11+
12+ permissions :
13+ contents : read
1014
1115jobs :
1216 build :
1317 runs-on : windows-latest
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ configuration : [Debug, Release, Dist]
1422
1523 steps :
1624 - name : Checkout repository
1725 uses : actions/checkout@v4
1826 with :
19- submodules : recursive
20- fetch-depth : 0
21-
22- - name : Checkout correct commit for GLFW submodule
23- run : |
24- cd StarEngine/vendor/GLFW
25- git fetch origin f48003349257c49ddc0e3d8a31d1f2d25d1585f7
26- git checkout f48003349257c49ddc0e3d8a31d1f2d25d1585f7
27+ repository : ' starbounded-dev/StarEngine'
28+ submodules : true
29+ lfs : true
2730
28- - name : Checkout correct commit for ImGui submodule
29- run : |
30- cd StarEngine/vendor/imgui
31- git fetch origin 0cfb1e23348b1fd480714eed212c21d913fee27c
32- git checkout 0cfb1e23348b1fd480714eed212c21d913fee27c
33-
34- - name : Checkout correct commit for yaml-cpp submodule
35- run : |
36- cd StarEngine/vendor/yaml-cpp
37- git fetch origin ceb728371d88def1b26a03d8e15cba42c9509d4f
38- git checkout ceb728371d88def1b26a03d8e15cba42c9509d4f
31+ - name : Setup Python
32+ uses : actions/setup-python@v4
33+ with :
34+ python-version : ' 3.12'
3935
4036 - name : Install Vulkan SDK
4137 uses : jakoch/install-vulkan-sdk-action@v1.2.0
4238 with :
43- # You can set the Vulkan SDK version to download.
44- # Defaults to latest version, if version not set.
4539 vulkan_version : 1.3.296.0
4640 optional_components : com.lunarg.vulkan.vma, com.lunarg.vulkan.debug, com.lunarg.vulkan.glm
4741 install_runtime : true
@@ -52,24 +46,18 @@ jobs:
5246 install_lavapipe : false
5347
5448 - name : Set up MSBuild
55- uses : microsoft/setup-msbuild@v1.0.2
56-
57- - uses : abel0b/setup-premake@v2.4
49+ uses : microsoft/setup-msbuild@v1.1
5850 with :
59- version : " 5.0.0-beta4 "
60-
61- - name : Generate project files with Premake
62- run : premake5 vs2022
63-
64- - name : Build project with MSBuild
65- run : MSBuild /m /p:Configuration=Release StarEngine.sln
51+ msbuild-architecture : ' x64 '
52+
53+ - name : Setup
54+ working-directory : ${{env.GITHUB_WORKSPACE}}
55+ run : |
56+ cd scripts
57+ python setup.py
6658
67- - name : Upload executable
68- uses : actions/upload-artifact@v4
69- with :
70- name : StarEngine-Windows
71- path : |
72- bin/Release-windows-x86_64/StarEditor/StarEditor.exe
73- bin/Release-windows-x86_64/StarEditor/assets
74- bin/Release-windows-x86_64/StarEditor/Resources
75- bin/Release-windows-x86_64/StarEditor/imgui.ini
59+ - name : Build
60+ working-directory : ${{env.GITHUB_WORKSPACE}}
61+ run : |
62+ MSBuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ matrix.build-configuration }} -fl -flp:logfile=logs/Build-${{ matrix.build-configuration }}.log
63+
0 commit comments