2022-01-16 12:58:02 +01:00
|
|
|
name: Test Builds on Windows
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-set-windows:
|
|
|
|
runs-on: windows-2022
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
id: checkout-code
|
2024-05-25 22:27:01 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-01-16 12:58:02 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Setup glslangValidator
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
2023-07-06 15:38:10 +02:00
|
|
|
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/HansKristian-Work/vkd3d-proton-ci/main/glslangValidator.exe" -OutFile "glslangValidator.exe"
|
|
|
|
Write-Output "$pwd" | Out-File -FilePath "${Env:GITHUB_PATH}" -Append
|
2022-02-06 20:13:34 +01:00
|
|
|
|
|
|
|
- name: Setup Meson
|
2022-01-16 12:58:02 +01:00
|
|
|
shell: pwsh
|
2022-02-06 20:13:34 +01:00
|
|
|
run: pip install meson
|
2022-01-16 12:58:02 +01:00
|
|
|
|
|
|
|
- name: Find Visual Studio
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
$installationPath = Get-VSSetupInstance `
|
|
|
|
| Select-VSSetupInstance -Require Microsoft.VisualStudio.Workload.NativeDesktop -Latest `
|
|
|
|
| Select-Object -ExpandProperty InstallationPath
|
|
|
|
Write-Output "VSDEVCMD=${installationPath}\Common7\Tools\VsDevCmd.bat" `
|
|
|
|
| Out-File -FilePath "${Env:GITHUB_ENV}" -Append
|
2022-02-06 20:13:34 +01:00
|
|
|
|
2022-01-16 12:58:02 +01:00
|
|
|
- name: Build MSVC x86
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
2022-02-06 20:13:34 +01:00
|
|
|
& "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" `
|
|
|
|
| % { , ($_ -Split '=', 2) } `
|
|
|
|
| % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) }
|
|
|
|
meson --buildtype release --backend vs2022 build-msvc-x86
|
|
|
|
msbuild -m build-msvc-x86/dxvk.sln
|
|
|
|
|
2022-01-16 12:58:02 +01:00
|
|
|
- name: Build MSVC x64
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
2022-02-06 20:13:34 +01:00
|
|
|
& "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x64 -host_arch=x64 -no_logo && set" `
|
|
|
|
| % { , ($_ -Split '=', 2) } `
|
|
|
|
| % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) }
|
|
|
|
meson --buildtype release --backend vs2022 build-msvc-x64
|
|
|
|
msbuild -m build-msvc-x64/dxvk.sln
|