Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ jobs:
path: SphereSvrX-linux-x86_64-nightly.tar.gz
overwrite: true


upload_github_release:
needs: linux-x86_64
# Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches
Expand Down
112 changes: 112 additions & 0 deletions .github/workflows/build_linux_x86_64_deb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Linux x86_64_deb

on:
push:
# branches:
# - 'master'
# - 'main'
paths-ignore:
- '.gitignore'
- '.gitattributes'
- '**.txt'
- '**.md'
- '**.rc'
pull_request:
branches:
- 'master'
- 'main'

jobs:
linux-x86_64_deb:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: read

steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install prerequisites
run: |
lsb_release -d

sudo add-apt-repository universe && sudo sudo apt-get -qq update
sudo apt-get install -yq --no-install-recommends \
ninja-build gcc-12 g++-12 \
dpkg-dev debhelper-compat build-essential \
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 "Default Linker:" && ld -v
echo && echo "CMake:" && cmake --version
echo && echo "Ninja:" && ninja --version

- name: Create package
run: |
cd packaging
cat debian/data/changelog | sed -e "s/@version@/$(git rev-list --count HEAD)/" -e "s/@date@/$(date -R)/" > debian/changelog
dpkg-buildpackage -us -uc -b -d
mv ../sphereserver_0.X.nightly-$(git rev-list --count HEAD)_amd64.deb ../SphereSvrX-linux-x86_64-nightly.deb

# 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"]'), 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_deb
path: SphereSvrX-linux-x86_64-nightly.deb
overwrite: true

upload_github_release:
needs: linux-x86_64_deb
# 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"]'), github.ref_name)
permissions:
contents: write
actions: read

runs-on: ubuntu-latest
steps:
- name: Download builds
uses: actions/download-artifact@v5
with:
name: Build-linux-x86_64_deb
merge-multiple: true
run-id: ${{ github.run_id }}

- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Nightly
tag_name: Nightly
prerelease: true
files: SphereSvrX-linux-x86_64-nightly.deb
fail_on_unmatched_files: false

upload_selfhost_release:
needs: linux-x86_64_deb
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
permissions:
contents: write
actions: read

runs-on: ubuntu-latest
steps:
- name: Download builds
uses: actions/download-artifact@v5
with:
name: Build-linux-x86_64_deb
merge-multiple: true
run-id: ${{ github.run_id }}
- name: Push release
run: |
curl -sST "{SphereSvrX-linux-x86_64-nightly.deb}" -u ${{secrets.UP_USER}}:${{secrets.UP_PASS}} ${{secrets.UP_WHERE}}
4 changes: 2 additions & 2 deletions packaging/debian/control
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Source: sphereserver
Section: net
Priority: optional
Maintainer: SphereServer development team <placeholder@sphereserver.net>
Maintainer: SphereServer development team <development@sphereserver.eu>
Build-Depends: debhelper-compat (= 13), cmake (>= 3.29), libmariadb-dev, git
Standards-Version: 4.7.2
Vcs-Browser: https://github.com/Sphereserver/Source-X
Vcs-Git: https://github.com/Sphereserver/Source-X.git
Homepage: https://www.sphereserver.net/
Homepage: https://www.sphereserver.eu/

Package: sphereserver
Architecture: any
Expand Down
2 changes: 1 addition & 1 deletion packaging/debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Source: https://github.com/Sphereserver/Source-X

Files: *
Copyright:
2025 SphereServer development team
2026 SphereServer development team
License: Apache 2.0
2 changes: 1 addition & 1 deletion packaging/debian/data/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ sphereserver (0.X.nightly-@version@) unstable; urgency=medium

* See https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt.

-- SphereServer development team <placeholder@sphereserver.net> @date@
-- SphereServer development team <development@sphereserver.eu> @date@
2 changes: 1 addition & 1 deletion packaging/debian/sphereserver.6
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH SPHERESERVER "6" "April 2025" "sphereserver"
.TH SPHERESERVER "6" "January 2026" "sphereserver"
.SH NAME
SphereServer \- Ultima Online server emulator
.SH DESCRIPTION
Expand Down