Skip to content

Update build.yaml

Update build.yaml #5

Workflow file for this run

name: Build VS2022 D3D9 Project
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.3.1
with:
vs-version: '17.0'
- name: Download DirectX SDK
run: |
Invoke-WebRequest -Uri "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe" -OutFile "DXSDK_Jun10.exe"
- name: Install DirectX SDK
run: |
Start-Process -FilePath "DXSDK_Jun10.exe" -ArgumentList "/U /Q" -Wait
Write-Host "DirectX SDK Installation completed"
- name: Verify DirectX SDK Installation
run: |
if (Test-Path "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3dx9.h") {
Write-Host "d3dx9.h found"
} else {
Write-Error "d3dx9.h not found"
exit 1
}
- name: Build Solution
run: |
msbuild external-cheat-base.sln `
/p:Configuration=Release `
/p:Platform=x64 `
/p:IncludePath="C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;$(IncludePath)" `
/p:LibraryPath="C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64;$(LibraryPath)"