mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
Split
This commit is contained in:
+12
-2
@@ -44,9 +44,19 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: init
|
||||||
commands:
|
commands:
|
||||||
- utils/scripts/build/windows-build.ps1
|
- git submodule init
|
||||||
|
- git submodule update
|
||||||
|
- name: build-win-x64
|
||||||
|
commands:
|
||||||
|
- utils/scripts/build/windows-build-no-bots.ps1
|
||||||
|
- name: build-win-x64-bots
|
||||||
|
commands:
|
||||||
|
- utils/scripts/build/windows-build-bots.ps1
|
||||||
|
- name: package-artifacts
|
||||||
|
commands:
|
||||||
|
- utils/scripts/build/package-artifacts.ps1
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
$cwd = Get-Location
|
||||||
|
|
||||||
|
Set-Location -Path "$cwd"
|
||||||
|
|
||||||
|
7z a build_x64.zip $cwd\build_x64\bin\RelWithDebInfo\*.exe $cwd\build_x64\bin\RelWithDebInfo\*.dll $cwd\build_x64\bin\RelWithDebInfo\*.pdb $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
|
|
||||||
|
7z a build_bots_x64.zip $cwd\build_bots_x64\bin\RelWithDebInfo\*.exe $cwd\build_bots_x64\bin\RelWithDebInfo\*.dll $cwd\build_bots_x64\bin\RelWithDebInfo\*.pdb $cwd\build_bots_x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\build_bots_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
@@ -2,28 +2,11 @@ $cwd = Get-Location
|
|||||||
|
|
||||||
Set-Location -Path "$cwd"
|
Set-Location -Path "$cwd"
|
||||||
|
|
||||||
git submodule init
|
|
||||||
git submodule update
|
|
||||||
|
|
||||||
Set-Location -Path $cwd
|
|
||||||
|
|
||||||
if(![System.IO.Directory]::Exists("$cwd\build_x64")) {
|
|
||||||
Write-Information -MessageData "Creating build x64 folder" -InformationAction Continue
|
|
||||||
New-Item -Path "$cwd\build_x64" -ItemType Directory
|
|
||||||
}
|
|
||||||
|
|
||||||
if(![System.IO.Directory]::Exists("$cwd\build_bots_x64")) {
|
if(![System.IO.Directory]::Exists("$cwd\build_bots_x64")) {
|
||||||
Write-Information -MessageData "Creating build (bots) x64 folder" -InformationAction Continue
|
Write-Information -MessageData "Creating build (bots) x64 folder" -InformationAction Continue
|
||||||
New-Item -Path "$cwd\build_bots_x64" -ItemType Directory
|
New-Item -Path "$cwd\build_bots_x64" -ItemType Directory
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Information -MessageData "Creating no bots build x64" -InformationAction Continue
|
|
||||||
Set-Location -Path "$cwd\build_x64"
|
|
||||||
cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON -DEQEMU_ENABLE_BOTS=OFF "$cwd"
|
|
||||||
cmake --build . --config RelWithDebInfo --clean-first
|
|
||||||
Set-Location -Path "$cwd"
|
|
||||||
7z a build_x64.zip $cwd\build_x64\bin\RelWithDebInfo\*.exe $cwd\build_x64\bin\RelWithDebInfo\*.dll $cwd\build_x64\bin\RelWithDebInfo\*.pdb $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
|
||||||
|
|
||||||
Write-Information -MessageData "Creating bots build x64" -InformationAction Continue
|
Write-Information -MessageData "Creating bots build x64" -InformationAction Continue
|
||||||
Set-Location -Path "$cwd\build_bots_x64"
|
Set-Location -Path "$cwd\build_bots_x64"
|
||||||
cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON -DEQEMU_ENABLE_BOTS=ON "$cwd"
|
cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON -DEQEMU_ENABLE_BOTS=ON "$cwd"
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
$cwd = Get-Location
|
||||||
|
|
||||||
|
Set-Location -Path "$cwd"
|
||||||
|
|
||||||
|
if(![System.IO.Directory]::Exists("$cwd\build_x64")) {
|
||||||
|
Write-Information -MessageData "Creating build x64 folder" -InformationAction Continue
|
||||||
|
New-Item -Path "$cwd\build_x64" -ItemType Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Information -MessageData "Creating no bots build x64" -InformationAction Continue
|
||||||
|
Set-Location -Path "$cwd\build_x64"
|
||||||
|
cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON -DEQEMU_ENABLE_BOTS=OFF "$cwd"
|
||||||
|
cmake --build . --config RelWithDebInfo --clean-first
|
||||||
|
Set-Location -Path "$cwd"
|
||||||
|
7z a build_x64.zip $cwd\build_x64\bin\RelWithDebInfo\*.exe $cwd\build_x64\bin\RelWithDebInfo\*.dll $cwd\build_x64\bin\RelWithDebInfo\*.pdb $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\build_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
Reference in New Issue
Block a user