From ff5164147a2f3fee1e847d97071cdbbf3dc9260b Mon Sep 17 00:00:00 2001 From: moi15moi Date: Sat, 21 Sep 2024 18:17:35 -0400 Subject: [PATCH 1/3] [premake5.lua] Remove the flags FatalCompileWarnings for the Release compilation It is simply not possible to build the project with this flags, so let's remove it --- premake5.lua | 1 - 1 file changed, 1 deletion(-) 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" From f879211b0d429f70bc8deddea77e0876797511cf Mon Sep 17 00:00:00 2001 From: moi15moi Date: Sat, 21 Sep 2024 18:17:46 -0400 Subject: [PATCH 2/3] Add build workflow --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml 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 From 88b7991fc1fea3df450a9e99a6d61fefa0d56aaf Mon Sep 17 00:00:00 2001 From: moi15moi Date: Sat, 21 Sep 2024 18:33:05 -0400 Subject: [PATCH 3/3] [README] Correct build file path --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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