Followerslots with EF_FollowerList - FIX #1251 #605
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
windows-x86_64: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: CMake | |
run: cmake -G "Visual Studio 17 2022" .\ | |
- name: MSBuild | |
run: msbuild SphereServer.sln /verbosity:minimal /maxcpucount /p:Configuration=Nightly | |
- name: Create package | |
run: | | |
pwd | |
mkdir accounts, logs, save, scripts | |
7z a SphereSvrX-win-x86_64-nightly.zip accounts\ logs\ save\ scripts\ .\bin-x86_64\Nightly\SphereSvrX64_nightly.exe .\src\sphere.ini .\src\sphereCrypt.ini .\lib\_bin\x86_64\mariadb\libmariadb.dll | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-win-x86_64 | |
path: SphereSvrX-win-x86_64-nightly.zip | |
overwrite: true | |
windows-x86: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: CMake | |
run: cmake -G "Visual Studio 17 2022" -A Win32 .\ | |
- name: MSBuild | |
run: msbuild SphereServer.sln /verbosity:minimal /maxcpucount /p:Configuration=Nightly | |
- name: Create package | |
run: | | |
pwd | |
mkdir accounts, logs, save, scripts | |
7z a SphereSvrX-win-x86-nightly.zip accounts\ logs\ save\ scripts\ .\bin-x86\Nightly\SphereSvrX32_nightly.exe .\src\sphere.ini .\src\sphereCrypt.ini .\lib\_bin\x86\mariadb\libmariadb.dll | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-win-x86 | |
path: SphereSvrX-win-x86-nightly.zip | |
overwrite: true | |
linux-x86_64: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install prerequisites | |
run: | | |
lsb_release -d | |
sudo add-apt-repository universe && sudo sudo apt-get -qq update | |
sudo apt install -yq --no-install-recommends ninja-build gcc-12 g++-12 > /dev/null | |
sudo apt install -yq --no-install-recommends mariadb-client libmariadb-dev | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 90 --slave /usr/bin/g++ g++ /usr/bin/g++-12 | |
- name: Report building tools | |
run: | | |
echo "GCC:" && gcc -v | |
echo && echo "CMake:" && cmake --version | |
echo && echo "Ninja:" && ninja --version | |
- name: CMake | |
run: | | |
mkdir -p build | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/Linux-GNU-x86_64.cmake -S ./ -B ./build | |
- name: Ninja | |
run: cd build && ninja && cd .. | |
- name: Create package | |
run: | | |
mkdir accounts logs save scripts | |
tar -czf SphereSvrX-linux-x86_64-nightly.tar.gz accounts/ logs/ save/ scripts/ build/bin-x86_64/SphereSvrX64_nightly src/sphere.ini src/sphereCrypt.ini | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-linux-x86_64 | |
path: SphereSvrX-linux-x86_64-nightly.tar.gz | |
overwrite: true | |
linux-x86: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install prerequisites | |
run: | | |
lsb_release -d | |
echo && echo "** Setting up repos" && echo | |
sudo sudo dpkg --add-architecture i386 | |
sudo add-apt-repository universe && sudo apt-get -qq update > /dev/null | |
echo "Done" | |
echo && echo "** Installing and setting up compiler and tools" && echo | |
sudo apt install -yqq --no-install-recommends ninja-build linux-libc-dev:i386 gcc-12 gcc-12-multilib g++-12 g++-12-multilib > /dev/null | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 90 --slave /usr/bin/g++ g++ /usr/bin/g++-12 | |
echo "Done" | |
# MariaDB dependencies | |
echo && echo "Install MariaDB dependencies" | |
echo "Installing some deps with apt..." | |
sudo apt install -yqq --no-install-recommends libc6:i386 libgcc-s1:i386 zlib1g:i386 | |
echo "Installing libssl1.1 manually from Bionic repo..." | |
wget --quiet --output-document=dep1.deb http://launchpadlibrarian.net/367327733/libssl1.1_1.1.0g-2ubuntu4_i386.deb | |
sudo dpkg -r --force-all libssl1.1 2> /dev/null | |
sudo dpkg -i --force-all dep1.deb 2> /dev/null | |
#sudo apt install --fix-broken ./dep1.deb | |
echo "Done" | |
# Workaround: there are no official packages built for i386 on this OS. Let's install from previous Ubuntu LTS versions repo. | |
echo "Installing MariaDB i386 manually from Bionic repo..." | |
wget --quiet --output-document=temp1.deb http://launchpadlibrarian.net/355877539/libmariadb3_3.0.3-1build1_i386.deb | |
wget --quiet --output-document=temp2.deb http://launchpadlibrarian.net/355877538/libmariadb-dev_3.0.3-1build1_i386.deb | |
#echo "Installing MariaDB i386 manually from Focal repo..." | |
#wget --quiet --output-document=temp1.deb http://launchpadlibrarian.net/448491536/libmariadb3_10.3.18-1_i386.deb | |
# No libmariadb-dev ? | |
#wget --quiet --output-document=temp2.deb http://launchpadlibrarian.net/355877538/libmariadb-dev_3.0.3-1build1_i386.deb | |
# Third choice: directly download and install packages from Debian repos? | |
sudo dpkg -i temp1.deb temp2.deb 2> /dev/null | |
echo "Done" | |
- name: Report building tools | |
run: | | |
echo "GCC:" && gcc -v | |
echo && echo "CMake:" && cmake --version | |
echo && echo "Ninja:" && ninja --version | |
- name: CMake | |
run: | | |
mkdir -p build | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/Linux-GNU-x86.cmake -S ./ -B ./build | |
- name: Ninja | |
run: cd build && ninja && cd .. | |
- name: Create package | |
run: | | |
mkdir accounts logs save scripts | |
tar -czf SphereSvrX-linux-x86-nightly.tar.gz accounts/ logs/ save/ scripts/ build/bin-x86/SphereSvrX32_nightly src/sphere.ini src/sphereCrypt.ini | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-linux-x86 | |
path: SphereSvrX-linux-x86-nightly.tar.gz | |
overwrite: true | |
macos-x86_64: | |
runs-on: macos-13 # intel | |
env: | |
CMAKE_GEN: Ninja | |
CMAKE_TCH: cmake/toolchains/OSX-AppleClang-x86_64.cmake | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install prerequisites | |
run: | | |
sw_vers | |
echo && echo "** Setting up compiler" && echo | |
export HOMEBREW_NO_AUTO_UPDATE=1 | |
export HOMEBREW_NO_INSTALL_CLEANUP=1 | |
brew install ninja mariadb-connector-c | |
- name: Report building tools | |
run: | | |
echo "Apple Clang:" && clang --version | |
echo && echo "CMake:" && cmake --version | |
echo && echo "Ninja:" && ninja --version | |
- name: CMake | |
run: | | |
mkdir -p build | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TCH" -S . -B ./build | |
- name: Ninja | |
run: cd build && ninja -v && cd .. | |
- name: Create package | |
run: | | |
pwd | |
mkdir accounts logs save scripts | |
zip -r SphereSvrX-osx-x86_64-nightly.zip accounts/ logs/ save/ scripts/ | |
zip SphereSvrX-osx-x86_64-nightly.zip src/sphere.ini src/sphereCrypt.ini build/bin-x86_64/* | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-osx-x86_64 | |
path: SphereSvrX-osx-x86_64-nightly.zip | |
overwrite: true | |
macos-arm64: | |
runs-on: macos-14 # apple silicon | |
env: | |
CMAKE_GEN: Ninja | |
CMAKE_TCH: cmake/toolchains/OSX-AppleClang-native.cmake | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install prerequisites | |
run: | | |
sw_vers | |
echo && echo "** Setting up compiler" && echo | |
export HOMEBREW_NO_AUTO_UPDATE=1 | |
export HOMEBREW_NO_INSTALL_CLEANUP=1 | |
brew install ninja mariadb-connector-c | |
- name: Report building tools | |
run: | | |
echo "Apple Clang:" && clang --version | |
echo && echo "CMake:" && cmake --version | |
echo && echo "Ninja:" && ninja --version | |
- name: CMake | |
run: | | |
mkdir -p build | |
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TCH" -S . -B ./build | |
- name: Ninja | |
run: cd build && ninja -v && cd .. | |
- name: Create package | |
run: | | |
pwd | |
mkdir accounts logs save scripts | |
zip -r SphereSvrX-osx-arm64-nightly.zip accounts/ logs/ save/ scripts/ | |
zip SphereSvrX-osx-arm64-nightly.zip src/sphere.ini src/sphereCrypt.ini build/bin-native64/* | |
# Upload artifact linked to the workflow run - only if the run is for a pull request, or for selected branches | |
- name: Upload artifact | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
uses: actions/upload-artifact@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Build-osx-arm64 | |
path: SphereSvrX-osx-arm64-nightly.zip | |
overwrite: true | |
upload: | |
needs: [windows-x86_64, windows-x86, linux-x86_64, linux-x86, macos-x86_64, macos-arm64] | |
# Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches | |
if: contains(fromJson('["master", "main", "dev"]'), github.ref_name) || ${{ github.event_name == 'pull_request' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Download builds | |
uses: actions/download-artifact@v4 | |
with: | |
pattern: Build-* | |
merge-multiple: true | |
- name: Generate changelog | |
run: git log --pretty=format:"%ad %an %s" --date=short > Git-Changelog.txt | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Nightly | |
tag_name: Nightly | |
prerelease: true | |
files: | | |
Git-Changelog.txt | |
SphereSvrX-win-x86_64-nightly.zip | |
SphereSvrX-win-x86-nightly.zip | |
SphereSvrX-linux-x86_64-nightly.tar.gz | |
SphereSvrX-linux-x86-nightly.tar.gz | |
SphereSvrX-osx-x86_64-nightly.zip | |
SphereSvrX-osx-arm64-nightly.zip |