Build Discord Presence components on test branch

This commit is contained in:
Dusk-92
2026-08-31 22:17:13 +02:00
parent 865179d7f4
commit 6af37f14b9
+17
View File
@@ -5,6 +5,7 @@ on:
branches:
- 'main'
- 'feature/client-tweaks'
- 'test/discord-presence'
tags:
- 'v*'
pull_request:
@@ -41,6 +42,22 @@ jobs:
pyinstaller --version
python -m pip show pyinstaller pyinstaller-hooks-contrib
- name: Configure x86 MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- name: Build Discord Presence native components
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path "Payload" | Out-Null
cl /nologo /O2 /MT /W3 /LD "native\DiscordPresence\DiscordPresence.c" /Fe:"Payload\DiscordPresence.dll" /link /INCREMENTAL:NO
if ($LASTEXITCODE -ne 0) { throw "DiscordPresence.dll build failed" }
cl /nologo /O2 /MT /W3 "native\DiscordPresence\DiscordPresenceLauncher.c" /Fe:"Payload\DiscordPresence.exe" /link /SUBSYSTEM:WINDOWS /INCREMENTAL:NO
if ($LASTEXITCODE -ne 0) { throw "DiscordPresence.exe build failed" }
if (-not (Test-Path "Payload\DiscordPresence.dll")) { throw "DiscordPresence.dll missing" }
if (-not (Test-Path "Payload\DiscordPresence.exe")) { throw "DiscordPresence.exe missing" }
- name: Syntax check
run: python -m py_compile setup_tool.py setup_tool_dynamic.py remote_packages.py tests/test_safety.py