@@ -28,32 +28,37 @@ jobs:
28
28
install : >-
29
29
mingw-w64-x86_64-gcc
30
30
mingw-w64-x86_64-qt6-base
31
- mingw-w64-x86_64-protobuf
32
31
mingw-w64-x86_64-make
33
32
mingw-w64-x86_64-cmake
33
+
34
+ - name : Build Protobuf
35
+ shell : msys2 {0}
36
+ run : |
37
+ mkdir -p "${{ github.workspace }}/protobuf-lib-static"
38
+ echo "Protobuf: '${{ github.workspace }}/protobuf-lib-static'"
39
+ chmod +x ./CI/build_static_protobuf.sh
40
+ sudo ./CI/build_static_protobuf.sh "${{ github.workspace }}/protobuf-lib-static"
34
41
35
42
- name : Configure CMake
36
43
shell : msys2 {0}
37
- run : cmake -B build -G "Unix Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make
44
+ run : cmake -B build -G "Unix Makefiles" -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ github.workspace }}/protobuf-lib-static/lib/cmake"
38
45
39
46
- name : Build project
40
47
shell : msys2 {0}
41
48
run : |
42
- cmake --build build --config Debug --parallel $(nproc)
49
+ cmake --build build --config Release --parallel $(nproc)
43
50
echo "Dependencies for shader-gen.exe"
44
51
ldd build/shader-gen
45
-
46
- echo "Dependencies for shader-gen-tests.exe"
47
- ldd build/shader-gen-tests
48
52
49
- - name : Package executable
53
+ - name : Create portable package
50
54
shell : msys2 {0}
51
55
run : |
52
- cpack --config build/CPackConfig.cmake -G NSIS
56
+ cpack --config CPackConfig.cmake -G ZIP --verbose -C Release
57
+ working-directory : build
53
58
54
- - name : Upload artifact
59
+ - name : Upload portable package
55
60
uses : actions/upload-artifact@v4
56
61
with :
57
- name : ShaderGen-Package
58
- path : build/*.exe
62
+ name : ShaderGen-Portable
63
+ path : build/*.zip
59
64
0 commit comments