-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.2 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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