Skip to content

Fix #2

Fix #2 #29

Workflow file for this run

name: Windows
on:
push:
paths:
- 'premake5.lua'
- 'source/**'
- 'third-party/**'
workflow_dispatch:
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Clone garrysmod_common/master
uses: actions/checkout@v4
with:
repository: 'danielga/garrysmod_common'
ref: 'master'
path: 'third-party/garrysmod_common'
submodules: 'recursive'
- name: Install Premake
run: |
curl -L https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip -o premake.zip
tar -xf premake.zip
- name: Generate Project
run: |
./premake5.exe vs2022
- name: Building
run: |
cd projects/windows/vs2022
msbuild /p:Configuration=ReleaseWithSymbols /p:Platform=Win32 -m network.sln
- name: Uploading
uses: actions/upload-artifact@v4
with:
name: gmsv_network_win32
path: projects/windows/vs2022/x86/ReleaseWithSymbols/gmsv_network_win32.dll
if-no-files-found: error