mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-23 16:42:26 +00:00
Test
This commit is contained in:
parent
92df505c6e
commit
90366302bd
11
.drone.yml
11
.drone.yml
@ -26,6 +26,13 @@ steps:
|
|||||||
- name: cache
|
- name: cache
|
||||||
path: /home/eqemu/.ccache/
|
path: /home/eqemu/.ccache/
|
||||||
|
|
||||||
|
# remove this when merge
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- noop
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -37,9 +44,9 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: greeting
|
- name: build
|
||||||
commands:
|
commands:
|
||||||
- echo hello world
|
- utils/scripts/build/windows-build.ps1
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@ -62,4 +62,7 @@ compile_flags.txt
|
|||||||
.cache/
|
.cache/
|
||||||
|
|
||||||
# vscode generated settings
|
# vscode generated settings
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
|
||||||
|
!utils/scripts/build/
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit b9aeec6eaf3d5610503439b4fae3581d9aff08e8
|
Subproject commit c6d7e295bf5a0ab9b5f896720cc1a0e0fdc397a7
|
||||||
30
utils/scripts/build/windows-build.ps1
Normal file
30
utils/scripts/build/windows-build.ps1
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
$cwd = Get-Location
|
||||||
|
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
|
Set-Location -Path $cwd
|
||||||
|
|
||||||
|
if(![System.IO.Directory]::Exists("build_x64")) {
|
||||||
|
Write-Information -MessageData "Creating build x64 folder" -InformationAction Continue
|
||||||
|
New-Item -Path "build_x64" -ItemType Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
if(![System.IO.Directory]::Exists("build_bots_x64")) {
|
||||||
|
Write-Information -MessageData "Creating build (bots) x64 folder" -InformationAction Continue
|
||||||
|
New-Item -Path "build_bots_x64" -ItemType Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Information -MessageData "Creating no bots build x64" -InformationAction Continue
|
||||||
|
Set-Location -Path "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 "\Server"
|
||||||
|
cmake --build . --config RelWithDebInfo --clean-first
|
||||||
|
Set-Location -Path "$cwd"
|
||||||
|
7z a build_x64.zip build_x64\bin\RelWithDebInfo\*.exe build_x64\bin\RelWithDebInfo\*.dll build_x64\bin\RelWithDebInfo\*.pdb build_x64\libs\zlibng\RelWithDebInfo\*.dll build_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
|
|
||||||
|
Write-Information -MessageData "Creating bots build x64" -InformationAction Continue
|
||||||
|
Set-Location -Path "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 "\Server"
|
||||||
|
cmake --build . --config RelWithDebInfo --clean-first
|
||||||
|
Set-Location -Path "$cwd"
|
||||||
|
7z a build_bots_x64.zip build_bots_x64\bin\RelWithDebInfo\*.exe build_bots_x64\bin\RelWithDebInfo\*.dll build_bots_x64\bin\RelWithDebInfo\*.pdb build_bots_x64\libs\zlibng\RelWithDebInfo\*.dll build_bots_x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
Loading…
x
Reference in New Issue
Block a user