Compare commits

...

18 Commits

Author SHA1 Message Date
Akkadius 332a1dcab1 Update windows-build.ps1 2023-01-21 00:51:26 -06:00
Akkadius 8dd8caff63 Update windows-build.ps1 2023-01-21 00:41:20 -06:00
Akkadius fc24385fd6 Update windows-build.ps1 2023-01-21 00:30:52 -06:00
Akkadius c9d8c45b39 Update windows-build.ps1 2023-01-21 00:22:52 -06:00
Akkadius 191746975c Trim windows assets 2023-01-21 00:15:11 -06:00
Akkadius 965bf0e684 Update CMakeLists.txt 2023-01-21 00:00:09 -06:00
Akkadius 4ed820039c Update linux-build.sh 2023-01-20 21:16:55 -06:00
Akkadius c931b1051e Update linux-build.sh 2023-01-20 20:25:39 -06:00
Akkadius 5375603b81 Another release test 2023-01-20 19:30:16 -06:00
Akkadius 77ad1c6f9c Update linux-build.sh 2023-01-20 17:37:02 -06:00
Akkadius 3771da84c4 Pop cache back in 2023-01-20 17:26:25 -06:00
Akkadius 77cbe4b9d4 Run it 2023-01-20 17:17:41 -06:00
Akkadius c7dcf52b82 Consolidate 2023-01-20 17:06:20 -06:00
Akkadius a942b65553 Update windows-build.ps1 2023-01-20 17:01:08 -06:00
Akkadius 62546b6f2f F 2023-01-20 16:54:10 -06:00
Akkadius 4ac0bfd69e Update windows-build.ps1 2023-01-20 16:51:43 -06:00
Akkadius 9cde2f7405 Update windows-build.ps1 2023-01-20 16:50:45 -06:00
Akkadius c17ab5a848 Update windows-build.ps1 2023-01-20 16:48:05 -06:00
7 changed files with 69 additions and 111 deletions
+16 -93
View File
@@ -1,43 +1,11 @@
---
kind: pipeline
type: docker
name: EQEmulator Server Linux CI
# Limits how many of these builds can run on the drone runner at a time, this isn't about cores
concurrency:
limit: 1
volumes:
- name: cache
host:
path: /var/lib/cache-debug
steps:
- name: server-build
# Source build script https://github.com/Akkadius/akk-stack/blob/master/containers/eqemu-server/Dockerfile#L20
image: akkadius/eqemu-server:v11
commands:
- sudo chown eqemu:eqemu /drone/src/ * -R
- sudo chown eqemu:eqemu /home/eqemu/.ccache/ * -R
- git submodule init && git submodule update && mkdir -p build && cd build && cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-O0 -g -DNDEBUG" -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
- curl https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/eqemu_config.json --output eqemu_config.json
- ./bin/tests
volumes:
- name: cache
path: /home/eqemu/.ccache/
# remove this when merge
trigger:
branch:
- noop
event:
- push
---
kind: pipeline
type: docker
name: Build Linux Binaries
name: Build Linux
clone:
depth: 1
# Limits how many of these builds can run on the drone runner at a time, this isn't about cores
concurrency:
@@ -49,70 +17,37 @@ volumes:
path: /var/lib/cache-release
steps:
- name: Init
- name: Build Linux X64
image: akkadius/eqemu-server:v11
environment:
GITHUB_TOKEN:
from_secret: GH_RELEASE_GITHUB_API_TOKEN
commands:
- ./utils/scripts/build/should-release/should-release
- sudo chown eqemu:eqemu /drone/src/ * -R
- sudo chown eqemu:eqemu /home/eqemu/.ccache/ * -R
- git submodule init && git submodule update
volumes:
- name: cache
path: /home/eqemu/.ccache/
- name: Linux x64
image: akkadius/eqemu-server:v11
commands:
- mkdir -p build && cd build && cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-Os" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
- curl https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/eqemu_config.json --output eqemu_config.json
- ./bin/tests
volumes:
- name: cache
path: /home/eqemu/.ccache/
- name: Package Artifact
image: akkadius/eqemu-server:v11
commands:
- rm ./build/bin/*.a
- zip -j eqemu-server-linux-x64.zip ./build/bin/*
- ls -lsh | grep zip
volumes:
- name: cache
path: /home/eqemu/.ccache/
- name: Upload Artifact
image: akkadius/eqemu-build-releaser:v2
environment:
RCLONE_CONFIG_REMOTE_TYPE: ftp
RCLONE_FTP_HOST: drone.akkadius.com
RCLONE_FTP_USER: artifacts
RCLONE_FTP_PASS:
from_secret: RCLONE_FTP_PASS
commands:
- rclone config create remote ftp env_auth true > /dev/null
- |
rclone copy eqemu-server-linux-x64.zip remote:
- |
rclone ls remote:
trigger:
branch:
- akkadius/build-test
event:
- push
- ./utils/scripts/build/linux-build.sh
volumes:
- name: cache
path: /home/eqemu/.ccache/
---
kind: pipeline
type: exec
name: Build Windows Binaries
name: Build Windows
clone:
depth: 1
platform:
os: windows
arch: amd64
steps:
- name: Build Windows X64 Release
- name: Build Windows X64
environment:
RCLONE_CONFIG_REMOTE_TYPE: ftp
RCLONE_FTP_HOST: drone.akkadius.com
@@ -124,12 +59,6 @@ steps:
commands:
- .\utils\scripts\build\windows-build.ps1
trigger:
branch:
- akkadius/build-test
event:
- push
---
kind: pipeline
@@ -159,11 +88,5 @@ steps:
rclone delete remote: --include "eqemu-server*.zip"
depends_on:
- Build Windows Binaries
- Build Linux Binaries
trigger:
branch:
- akkadius/build-test
event:
- push
- Build Windows
- Build Linux
+6
View File
@@ -1,3 +1,9 @@
## [22.0.8]
### Release Test
Another release test (We're almost there!)
## [22.0.7]
### Release Test
+1 -1
View File
@@ -23,7 +23,7 @@ IF(MSVC)
ADD_DEFINITIONS(-D_HAS_AUTO_PTR_ETC) # for Luabind on C++17
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
ADD_DEFINITIONS( "/W0 /D_CRT_SECURE_NO_WARNINGS /wd4005 /wd4996 /nologo ")
ADD_DEFINITIONS( "/W0 /D_CRT_SECURE_NO_WARNINGS /wd4005 /wd4996 /nologo /Os")
ELSE(MSVC)
ADD_DEFINITIONS(-DHAS_UNION_SEMUN)
ENDIF(MSVC)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "eqemu-server",
"version": "22.0.7",
"version": "22.0.8",
"repository": {
"type": "git",
"url": "https://github.com/EQEmu/Server.git"
-12
View File
@@ -1,12 +0,0 @@
git submodule init
git submodule update
.\utils\scripts\build\windows-build.ps1
.\utils\scripts\build\should-release\should-release.exe || echo Not releasing, exit gracefully && exit /b 0
Powershell.exe -executionpolicy remotesigned -File .\utils\scripts\build\package-artifacts.ps1
dir *.zip
rclone config create remote ftp env_auth true
rclone copy eqemu-server-windows-x64.zip remote:
rclone ls remote:
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
set -x
sudo chown eqemu:eqemu /drone/src/ * -R
sudo chown eqemu:eqemu /home/eqemu/.ccache/ * -R
git submodule init && git submodule update
mkdir -p build && cd build && cmake -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_LUA=ON -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-Os" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -G 'Unix Makefiles' .. && make -j$((`nproc`-4))
curl https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/eqemu_config.json --output eqemu_config.json
./bin/tests
# shellcheck disable=SC2164
cd /drone/src/
chmod +x ./utils/scripts/build/should-release/should-release
./utils/scripts/build/should-release/should-release || exit
rm ./build/bin/*.a
zip -j eqemu-server-linux-x64.zip ./build/bin/*
# shellcheck disable=SC2010
ls -lsh | grep zip
sudo apt-get update && sudo apt-get install -y rclone
rclone config create remote ftp env_auth true > /dev/null
rclone copy eqemu-server-linux-x64.zip remote:
rclone ls remote:
+16 -4
View File
@@ -1,4 +1,4 @@
Try
try
{
$cwd = Get-Location
@@ -19,18 +19,30 @@ Try
cmake --build . --config RelWithDebInfo --clean-first
Set-Location -Path "$cwd"
7z a eqemu-server-windows-x64.zip $cwd\win-build-x64\bin\RelWithDebInfo\*.exe $cwd\win-build-x64\bin\RelWithDebInfo\*.dll $cwd\win-build-x64\bin\RelWithDebInfo\*.pdb $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.pdb
.\utils\scripts\build\should-release\should-release.exe; if ($LASTEXITCODE -ne 0) { exit }
cmd.exe .\utils\scripts\build\should-release\should-release.exe
# trim some fat
del $cwd\win-build-x64\bin\RelWithDebInfo\export_client_files.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\import_client_files.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\shared_memory.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\queryserv.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\eqlaunch.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\cppunit.pdb
# del $cwd\win-build-x64\bin\RelWithDebInfo\zlib-ng.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\tests.pdb
del $cwd\win-build-x64\bin\RelWithDebInfo\tests.exe
7z a eqemu-server-windows-x64.zip $cwd\win-build-x64\bin\RelWithDebInfo\*.exe $cwd\win-build-x64\bin\RelWithDebInfo\*.dll $cwd\win-build-x64\bin\RelWithDebInfo\*.pdb $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.pdb
dir *.zip
rclone config create remote ftp env_auth true
rclone copy eqemu-server-windows-x64.zip remote:
rclone ls remote:
}
Catch
catch
{
Write-Host ("Caught signal to end")
Write-Host $_
}