-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (34 loc) · 1.15 KB
/
pr-build.yml
File metadata and controls
44 lines (34 loc) · 1.15 KB
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
name: Pull Request Build
on:
pull_request:
jobs:
build:
name: Build DLLs
runs-on: windows-2022
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v2
- name: Build Core Win32 DLL
run: msbuild uc_online2_core.vcxproj -p:Configuration=Release -p:Platform=Win32 -m
- name: Build Core x64 DLL
run: msbuild uc_online2_core.vcxproj -p:Configuration=Release -p:Platform=x64 -m
- name: Build Win32 DLL
run: msbuild uc_online2.vcxproj -p:Configuration=Release -p:Platform=Win32 -m
- name: Build x64 DLL
run: msbuild uc_online2.vcxproj -p:Configuration=Release -p:Platform=x64 -m
- name: Verify build outputs
shell: pwsh
run: |
$files = @(
"build/x86/uc_online2_core.dll",
"build/x64/uc_online2_core64.dll",
"build/x86/steam_api.dll",
"build/x64/steam_api64.dll"
)
foreach ($file in $files) {
if (-not (Test-Path $file)) {
throw "Missing expected build output: $file"
}
}