diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1158786..8bd5db4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,9 @@ jobs: configuration: - debug - release + compiler: + - msvc + - clang steps: - name: Check out files uses: actions/checkout@main @@ -42,19 +45,24 @@ jobs: with: version: ${{ env.PREMAKE_VERSION }} - - name: Generate project files + - name: Generate project files (clang) + if: matrix.compiler == 'clang' + run: premake5 --cc=${{matrix.compiler}} vs2022 + + - name: Generate project files (msvc) + if: matrix.compiler == 'msvc' run: premake5 vs2022 - name: Set up problem matching uses: ammaraskar/msvc-problem-matcher@master - name: Build ${{matrix.configuration}} binaries - run: msbuild /m /v:minimal /p:Configuration=${{matrix.configuration}} /p:Platform=Win32 build/mw3-server-freezer.sln + run: msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=Win32 build/mw3-server-freezer.sln - name: Upload ${{matrix.configuration}} binaries uses: actions/upload-artifact@main with: - name: ${{matrix.configuration}} binaries + name: windows-${{matrix.compiler}}-${{matrix.configuration}} path: | build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.dll build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.pdb diff --git a/premake5.lua b/premake5.lua index 92676a5..149defe 100644 --- a/premake5.lua +++ b/premake5.lua @@ -62,7 +62,7 @@ filter "configurations:release" defines {"NDEBUG"} flags {"FatalCompileWarnings"} - filter "action:msc" + filter "toolset:msc*" buildoptions "/GL" linkoptions {"/IGNORE:4702", "/LTCG"} filter {}