Skip to content

Add Linux Build Github Action #2979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
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
71 changes: 71 additions & 0 deletions .github/workflows/linux-dev-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Linux Development Release

on:
push:
branches:
- development
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/ISSUE_TEMPLATE.md'
- '.github/PULL_REQUEST_TEMPLATE.md'
- '.github/workflows/db_check.yml'
- '.github/workflows/db_dump.yml'
- '.github/workflows/dev-release.yml'
- '.github/workflows/vmangos.yml'
- 'sql/**'
- '.drone.yml'
- 'README.md'
- 'LICENSE'
- '.gitignore'
- 'CONTRIBUTING.md'

jobs:
build:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- name: Build
run: |
sudo apt-get -qq update
sudo apt-get -qq install build-essential cmake libace-dev libtbb-dev libmysqlclient-dev
mkdir build
cd build
sudo cmake ../ -DCMAKE_INSTALL_PREFIX=/vmangos -DDEBUG_SYMBOLS=0 -DSUPPORTED_CLIENT_BUILD=5875 -DBUILD_FOR_HOST_CPU=0
sudo make -j $(nproc)
sudo make install

- name: Collect Files
run: |
sudo mv /vmangos/etc/realmd.conf.dist /vmangos/etc/realmd.conf
sudo mv /vmangos/etc/mangosd.conf.dist /vmangos/etc/mangosd.conf
- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: |
/vmangos/bin/realmd
/vmangos/etc/realmd.conf
/vmangos/bin/mangosd
/vmangos/etc/mangosd.conf

- name: Download Artifact
uses: actions/download-artifact@v4
with:
pattern: my-artifact
path: all_snapshots

- name: Get Date
id: date
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYY-MM-DD"

- name: Upload Snapshot
uses: "crowbarmaster/GH-Automatic-Releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Linux Development Build(${{ steps.date.outputs.time }})"
files: all_snapshots