File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 CXXFLAGS : -Werror
1414 steps :
1515 - name : Checkout
16- uses : actions/checkout@v5
16+ uses : actions/checkout@v6
1717 - name : Dependencies
1818 run : |
1919 if [ "$RUNNER_OS" == "macOS" ]; then
4747 fail-fast : false
4848 steps :
4949 - name : Checkout ZenLib
50- uses : actions/checkout@v5
50+ uses : actions/checkout@v6
5151 with :
5252 path : ZenLib
5353 - name : Add msbuild to PATH
5757 - name : Build
5858 run : msbuild -p:Configuration=Release -p:Platform=${{ matrix.architecture }} ${{ github.workspace }}\ZenLib\Project\MSVC2022\ZenLib_MSVC.sln -verbosity:quiet -warnaserror
5959
60+ CMake :
61+ strategy :
62+ matrix :
63+ include :
64+ - runner : windows-latest
65+ CXXFLAGS : " /std:c++20 /WX /MP"
66+ - runner : ubuntu-latest
67+ CXXFLAGS : " -Werror"
68+ - runner : macos-latest
69+ CXXFLAGS : " -Werror"
70+ fail-fast : false
71+ name : CMake (${{ matrix.runner }})
72+ runs-on : ${{ matrix.runner }}
73+ env :
74+ CXXFLAGS : ${{ matrix.CXXFLAGS }}
75+ steps :
76+ - name : Checkout ZenLib
77+ uses : actions/checkout@v6
78+ - name : Configure CMake project
79+ run : cmake -S Project/CMake -B build -DCMAKE_BUILD_TYPE=Release
80+ - name : Build CMake project
81+ run : cmake --build build ${{ runner.os == 'Windows' && '--config Release' || '-j4' }}
82+
6083 MinGW :
6184 runs-on : windows-latest
6285 strategy :
7396 CXXFLAGS : -Werror
7497 steps :
7598 - name : Checkout ZenLib
76- uses : actions/checkout@v5
99+ uses : actions/checkout@v6
77100 - name : Setup MSYS2 environment
78101 uses : msys2/setup-msys2@v2
79102 with :
Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ else()
125125 set (ZenLib_Unicode "no" )
126126endif ()
127127
128+ if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16" )
129+ target_precompile_headers (zen PRIVATE "${ZenLib_SOURCES_PATH} /ZenLib/PreComp.h" )
130+ endif ()
131+
128132FIND_PACKAGE (Threads )
129133if (CMAKE_THREAD_LIBS_INIT)
130134 target_link_libraries (zen PUBLIC ${CMAKE_THREAD_LIBS_INIT} )
You can’t perform that action at this time.
0 commit comments