diff --git a/.github/workflows/linux-dev-release.yml b/.github/workflows/linux-dev-release.yml new file mode 100644 index 00000000000..2596c21e736 --- /dev/null +++ b/.github/workflows/linux-dev-release.yml @@ -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