1212
1313env :
1414 BUILD_TYPE : Release
15+ VERSION_NAME : 1.1
1516
1617jobs :
17- Test_windows :
18+ Build_exec :
1819 runs-on : windows-latest
1920 steps :
2021 - name : Checkout repository
3435 uses : actions/upload-artifact@v3
3536 with :
3637 name : SWPacker
37- path : ${{github.workspace}}\out\1.1\Release\
38+ path : ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
39+
40+ Build_Unpack_Shared :
41+ runs-on : windows-latest
42+ steps :
43+ - name : Checkout repository
44+ uses : actions/checkout@v4
45+
46+ - name : Config executables
47+ run : |
48+ mkdir build && cd build
49+ cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_SHARED=ON ..
50+
51+ - name : Build executables
52+ run : |
53+ cd ${{github.workspace}}\build
54+ cmake --build ${{github.workspace}}\build --target SWEngine-unpacker_${{env.VERSION_NAME}} --config ${{env.BUILD_TYPE}}
55+
56+ - name : Archive Library
57+ uses : actions/upload-artifact@v3
58+ with :
59+ name : SWPacker
60+ path : ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
61+
62+ Build_Unpack_Static :
63+ runs-on : windows-latest
64+ steps :
65+ - name : Checkout repository
66+ uses : actions/checkout@v4
67+
68+ - name : Config executables
69+ run : |
70+ mkdir build && cd build
71+ cmake -B ${{github.workspace}}\build -G "Visual Studio 17 2022" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_UNPACK_LIB_STATIC=ON ..
72+
73+ - name : Build executables
74+ run : |
75+ cd ${{github.workspace}}\build
76+ cmake --build ${{github.workspace}}\build --target SWEngine-unpacker_${{env.VERSION_NAME}} --config ${{env.BUILD_TYPE}}
77+
78+ - name : Archive library
79+ uses : actions/upload-artifact@v3
80+ with :
81+ name : SWPacker
82+ path : ${{github.workspace}}\out\${{env.VERSION_NAME}}\Release\
0 commit comments