This commit is contained in:
ineed bots 2023-08-30 13:00:25 -06:00
parent 9459407a68
commit 35d6e1bda3
3 changed files with 40 additions and 1 deletions

View File

@ -4,10 +4,20 @@ on:
push: push:
branches: branches:
- "*" - "*"
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request: pull_request:
branches: branches:
- "*" - "*"
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
PREMAKE_VERSION: "5.0.0-beta2"
jobs: jobs:
build: build:
name: Build binaries name: Build binaries
@ -28,8 +38,13 @@ jobs:
- name: Add msbuild to PATH - name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1.3 uses: microsoft/setup-msbuild@v1.1.3
- name: Add premake5 to PATH
uses: abel0b/setup-premake@v2.3
with:
version: ${{ env.PREMAKE_VERSION }}
- name: Generate project files - name: Generate project files
run: tools/premake5 vs2022 run: premake5 vs2022
- name: Set up problem matching - name: Set up problem matching
uses: ammaraskar/msvc-problem-matcher@master uses: ammaraskar/msvc-problem-matcher@master
@ -43,3 +58,26 @@ jobs:
name: ${{matrix.configuration}} binaries name: ${{matrix.configuration}} binaries
path: | path: |
build/bin/${{matrix.configuration}}/t4sp-server-plugin.dll build/bin/${{matrix.configuration}}/t4sp-server-plugin.dll
deploy:
name: Deploy release
runs-on: ubuntu-latest
needs: [ build ]
if: startsWith(github.ref, 'refs/tags/') && (github.event.base_ref == 'refs/heads/main' || github.event.base_ref == 'refs/heads/develop')
steps:
- name: Check out files
uses: actions/checkout@v3.5.3
- name: Download Binaries
uses: actions/download-artifact@v3.0.2
with:
name: ${{matrix.configuration}} binaries
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
t4sp-server-plugin.dll

View File

@ -8,6 +8,7 @@ Move the `t4sp-server-plugin.dll` to `%LOCALAPPDATA%\Plutonium\storage\t4\plugin
# Credits # Credits
- momo5502 (https://github.com/momo5502) - momo5502 (https://github.com/momo5502)
- xensik (https://github.com/xensik/gsc-tool)
- fedddddd (https://github.com/fedddddd/t6-gsc-utils) - fedddddd (https://github.com/fedddddd/t6-gsc-utils)
- VoroN (https://github.com/voron00/CoD2rev_Server) - VoroN (https://github.com/voron00/CoD2rev_Server)
- CoD4x team (https://github.com/callofduty4x/CoD4x_Server) - CoD4x team (https://github.com/callofduty4x/CoD4x_Server)

Binary file not shown.