From 39f9ded8cd9067f946165486a5eed5555faaaf21 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Wed, 11 Oct 2023 11:50:15 +0200 Subject: [PATCH] ci: add github actions workflow --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 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 0000000..f5ffadc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: SporeModLoader + +on: [push, pull_request] + +jobs: + Windows: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + with: + submodules: 'true' + - uses: ilammy/msvc-dev-cmd@v1 + with: + arch: amd64_x86 + - name: Build Detours + run: | + cd "3rdParty\Detours" + $env:CL=/MP + $env:DETOURS_TARGET_PROCESSOR=x86 + nmake + - name: Build minizip-ng + run: | + cmake -S "3rdParty\minizip-ng" -B "3rdParty\minizip-ng\build" -A Win32 ` + -DMZ_LZMA=OFF -DMZ_ZSTD=OFF ` + -DMZ_BZIP2=OFF -DMZ_PKCRYPT=OFF ` + -DMZ_WZAES=OFF -DMZ_SIGNING=OFF ` + -DMZ_DECOMPRESS_ONLY=ON ` + -DCMAKE_POLICY_DEFAULT_CMP0091=NEW ` + -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded ` + -DCMAKE_BUILD_TYPE=Release + cmake --build "3rdParty\minizip-ng\build" --config Release + - name: Build Spore-ModAPI + run: | + msbuild "3rdParty\Spore-ModAPI\Spore ModAPI" ^ + /t:BuildDlls ^ + /p:BuildVer=280 ^ + /p:Config=Release ^ + /p:Platform=Win32 ^ + /m + - name: Build SporeModLoader + run: | + msbuild "%CUR_DIR%\SporeModLoader" ^ + /p:Configuration=Release ^ + /p:Platform=Win32 ^ + /m + - name: Build SporeModManager + run: | + msbuild "%CUR_DIR%\SporeModManager" ^ + /p:Configuration=Release ^ + /p:Platform=Win32 ^ + /m + # TODO: package \ No newline at end of file