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
51 changes: 46 additions & 5 deletions .github/workflows/build_aux_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,62 @@ on:
- '*.md'

jobs:
upload_github_release:
# 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)

release_dev:
if: github.ref_name == 'dev'
permissions:
contents: write
actions: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Reset Dev tag
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag -d Dev || true
git push origin :refs/tags/Dev || true
git tag Dev
git push origin Dev

- name: Generate changelog
run: git log --pretty=format:"%ad %an %s" --date=short > Git-Changelog.txt

- name: Add files to Dev release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Dev Nightly
tag_name: Dev
prerelease: true
files: |
Git-Changelog.txt

release_main:
if: contains(fromJson('["master","main"]'), github.ref_name)
permissions:
contents: write
actions: read
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Reset Nightly tag
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
git tag -d Nightly || true
git push origin :refs/tags/Nightly || true
git tag Nightly
git push origin Nightly

- name: Generate changelog
run: git log --pretty=format:"%ad %an %s" --date=short > Git-Changelog.txt

Expand All @@ -37,4 +78,4 @@ jobs:
name: Nightly
tag_name: Nightly
prerelease: true
files: Git-Changelog.txt
files: Git-Changelog.txt
67 changes: 44 additions & 23 deletions .github/workflows/build_linux_x86.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Linux x86

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

jobs:
linux-x86:
Expand All @@ -33,12 +31,13 @@ jobs:
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Install prerequisites
run: |
lsb_release -d

echo && echo "** Setting up repos" && echo
sudo sudo dpkg --add-architecture i386
sudo dpkg --add-architecture i386
sudo add-apt-repository universe && sudo apt-get -qq update > /dev/null
echo "Done"

Expand All @@ -55,20 +54,18 @@ jobs:
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
sudo dpkg -i --force-all dep1.deb
#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 "Downloading 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 "Downloading 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?
#echo "Packages to be installed by libmariadb3:"
#dpkg-deb -c temp1.deb
Expand Down Expand Up @@ -129,13 +126,37 @@ jobs:
overwrite: true


upload_github_release_dev:
needs: linux-x86
if: github.ref_name == 'dev'
permissions:
contents: write

runs-on: ubuntu-latest
steps:
- name: Download builds
uses: actions/download-artifact@v5
with:
name: Build-linux-x86
merge-multiple: true
run-id: ${{ github.run_id }}
- name: Create DEV release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Dev Nightly
tag_name: Dev
prerelease: true
files: SphereSvrX-linux-x86-nightly.tar.gz


upload_github_release:
needs: linux-x86
# Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches
# Upload artifact linked to GitHub RELEASE we are creating
if: contains(fromJson('["master", "main"]'), github.ref_name)
permissions:
contents: read
actions: write
contents: write

runs-on: ubuntu-latest
steps:
Expand All @@ -146,7 +167,7 @@ jobs:
merge-multiple: true
run-id: ${{ github.run_id }}

- name: Create release
- name: Create Nightly release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -162,7 +183,6 @@ jobs:
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
permissions:
contents: write
actions: read

runs-on: ubuntu-latest
steps:
Expand All @@ -172,6 +192,7 @@ jobs:
name: Build-linux-x86
merge-multiple: true
run-id: ${{ github.run_id }}

- name: Push release
run: |
curl -sST "{SphereSvrX-linux-x86-nightly.tar.gz}" -u ${{secrets.UP_USER}}:${{secrets.UP_PASS}} ${{secrets.UP_WHERE}}
Loading
Loading