Skip to content

Commit

Permalink
ci: add github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Oct 11, 2023
1 parent 1c55f84 commit 7df6ed5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
- name: Build Detours
run: |
cd "3rdParty\Detours"
set CL=/MP
set 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

0 comments on commit 7df6ed5

Please sign in to comment.