mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-19 19:52:53 +00:00
build: try to use clang here as well (#102)
This commit is contained in:
parent
b3841d855e
commit
44dac41d0d
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@ -25,6 +25,9 @@ jobs:
|
|||||||
configuration:
|
configuration:
|
||||||
- debug
|
- debug
|
||||||
- release
|
- release
|
||||||
|
compiler:
|
||||||
|
- msvc
|
||||||
|
- clang
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
@ -42,19 +45,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ env.PREMAKE_VERSION }}
|
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
|
run: premake5 vs2022
|
||||||
|
|
||||||
- name: Set up problem matching
|
- name: Set up problem matching
|
||||||
uses: ammaraskar/msvc-problem-matcher@master
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
- name: Build ${{matrix.configuration}} binaries
|
- 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
|
- name: Upload ${{matrix.configuration}} binaries
|
||||||
uses: actions/upload-artifact@main
|
uses: actions/upload-artifact@main
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.configuration}} binaries
|
name: windows-${{matrix.compiler}}-${{matrix.configuration}}
|
||||||
path: |
|
path: |
|
||||||
build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.dll
|
build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.dll
|
||||||
build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.pdb
|
build/bin/Win32/${{matrix.configuration}}/mw3-server-freezer.pdb
|
||||||
|
@ -62,7 +62,7 @@ filter "configurations:release"
|
|||||||
defines {"NDEBUG"}
|
defines {"NDEBUG"}
|
||||||
flags {"FatalCompileWarnings"}
|
flags {"FatalCompileWarnings"}
|
||||||
|
|
||||||
filter "action:msc"
|
filter "toolset:msc*"
|
||||||
buildoptions "/GL"
|
buildoptions "/GL"
|
||||||
linkoptions {"/IGNORE:4702", "/LTCG"}
|
linkoptions {"/IGNORE:4702", "/LTCG"}
|
||||||
filter {}
|
filter {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user