Fix DLL loading with LOAD_WITH_ALTERED_SEARCH_PATH, add missing flat API exports, and enable Release logging #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | |
| } | |
| } |