55
66jobs :
77
8- windows :
9- runs-on : windows-latest
10- steps :
11- - uses : actions/checkout@v4
12- - name : Initial compile
13- shell : cmd
14- run : |
15- "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" WickedEngine.sln /t:OfflineShaderCompiler /m /p:Configuration=Release /p:Platform=x64
16- - name : Generate shader dump
17- shell : cmd
18- run : |
19- cd "WickedEngine"
20- "../BUILD/x64/Release/OfflineShaderCompiler/OfflineShaderCompiler.exe" hlsl6 spirv shaderdump strip_reflection
21- - name : Recompile with shader dump
22- shell : cmd
23- run : |
24- "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" WickedEngine.sln /t:clean /m /p:Configuration=Release /p:Platform=x64
25- "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" WickedEngine.sln /t:Editor_Windows /m /p:Configuration=Release /p:Platform=x64
26-
27- - name : Move files
28- shell : cmd
29- run : |
30- move BUILD\x64\Release\Editor_Windows\Editor_Windows.exe .\
31- move Editor\config.ini .\
32- move Editor\startup.lua .\
33- move Editor\languages .\
34- move Editor\fonts .\
35-
36- - name : Install UPX
37- shell : cmd
38- run : choco install --no-progress upx
8+ test :
9+ runs-on : ubuntu-24.04
10+ strategy :
11+ matrix :
12+ version : [12, 13, 14]
3913
40- - name : Compress Editor with UPX
41- shell : cmd
42- run : upx --best Editor_Windows.exe
43-
44- - name : Package Editor
45- uses : actions/upload-artifact@v4
46- with :
47- name : Editor (Windows)
48- path : |
49- languages/
50- fonts/
51- config.ini
52- startup.lua
53- Editor_Windows.exe
54-
55-
56- linux :
57- runs-on : ubuntu-latest
5814 steps :
5915 - uses : actions/checkout@v4
6016
61- - name : Restore CCache database
62- id : restore-ccache
63- uses : actions/cache/restore@v4
64- with :
65- path : ~/.cache/ccache
66- key : ccache-${{ github.run_id }}
67- restore-keys : ccache
68-
6917 - name : Install dependencies
7018 run : |
7119 sudo apt update
@@ -75,39 +23,29 @@ jobs:
7523 run : |
7624 mkdir build
7725 cd build
78- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
79- CCACHE_NODIRECT=1 make -j$(nproc)
26+ CC=gcc-${{ matrix.version }} CXX=g++-${{ matrix.version }} cmake .. -DCMAKE_BUILD_TYPE=Release
27+ make -j$(nproc)
8028
8129 - name : Generate shader dump
8230 run : |
8331 cd build/WickedEngine
8432 ./offlineshadercompiler spirv rebuild shaderdump
8533 mv wiShaderDump.h ../../WickedEngine/
8634
87- - name : Recompile with shader dump
35+ - name : Compile with shader dump
8836 run : |
37+ touch WickedEngine/wiRenderer.cpp
8938 cd build
90- CCACHE_NODIRECT=1 make -B -j $(nproc)
91-
92- - name : Save Ccache database
93- id : save-ccache
94- if : always() && steps.restore-ccache.cache-hit != 'true'
95- uses : actions/cache/save@v4
96- with :
97- path : ~/.cache/ccache
98- key : ${{ steps.restore-ccache.outputs.cache-primary-key }}
39+ make -j $(nproc)
9940
10041 - name : Move binaries
10142 run : |
102- mv build/Editor/WickedEngineEditor ./Editor_Linux
43+ mv build/Editor/WickedEngineEditor ./Editor_Linux-${{ matrix.version }}
10344 mv Editor/config.ini ./
10445 mv Editor/startup.lua ./
10546 mv Editor/languages ./
10647 mv Editor/fonts ./
10748
108- - name : Compress Editor with UPX
109- run : upx --best Editor_Linux
110-
11149 - name : Package Editor
11250 uses : actions/upload-artifact@v4
11351 with :
11755 fonts/
11856 config.ini
11957 startup.lua
120- Editor_Linux
58+ Editor_Linux-${{ matrix.version }}
12159
12260 content :
12361 runs-on : windows-latest
0 commit comments