diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..bb34873d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + build: + name: Build + runs-on: windows-latest + strategy: + matrix: + configuration: + - Debug + - Release + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Run generate.bat + run: .\generate.bat + + - name: Build ${{matrix.configuration}} binaries + run: msbuild build\h2m-mod.sln /p:Configuration=${{matrix.configuration}} /p:Platform=x64 /m /v:minimal + + - name: Upload ${{matrix.configuration}} binaries + uses: actions/upload-artifact@v4 + with: + name: ${{matrix.configuration}} binaries + if-no-files-found: error + path: | + build/bin/x64/${{matrix.configuration}}/h2m-mod.exe + build/bin/x64/${{matrix.configuration}}/h2m-mod.pdb diff --git a/README.md b/README.md index 9c90454f..63d81bc0 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ NOTE: You must legally own Call of Duty®: Modern Warfare Remastered to run this - Clone the Git repo. Do NOT download it as ZIP, that won't work. - Update the submodules and run `premake5 vs2022` or simply use the delivered `generate.bat`. -- Build via solution file in `build\h1-mod.sln`. +- Build via solution file in `build\h2m-mod.sln`. ### Premake arguments diff --git a/premake5.lua b/premake5.lua index 8f798160..d8b38cac 100644 --- a/premake5.lua +++ b/premake5.lua @@ -259,7 +259,6 @@ filter "configurations:Release" buildoptions {"/GL"} linkoptions { "/IGNORE:4702", "/LTCG" } defines {"NDEBUG"} - flags {"FatalCompileWarnings"} filter {} filter "configurations:Debug"