1 | name: Test Builds on Windows
|
---|
2 |
|
---|
3 | on: [push, pull_request, workflow_dispatch]
|
---|
4 |
|
---|
5 | jobs:
|
---|
6 | build-set-windows:
|
---|
7 | runs-on: windows-2022
|
---|
8 |
|
---|
9 | steps:
|
---|
10 | - name: Checkout code
|
---|
11 | id: checkout-code
|
---|
12 | uses: actions/checkout@v3
|
---|
13 | with:
|
---|
14 | submodules: recursive
|
---|
15 |
|
---|
16 | - name: Setup glslangValidator
|
---|
17 | shell: pwsh
|
---|
18 | run: |
|
---|
19 | Invoke-WebRequest -Uri "https://raw.githubusercontent.com/HansKristian-Work/vkd3d-proton-ci/main/glslangValidator.exe" -OutFile "glslangValidator.exe"
|
---|
20 | Write-Output "$pwd" | Out-File -FilePath "${Env:GITHUB_PATH}" -Append
|
---|
21 |
|
---|
22 | - name: Setup Meson
|
---|
23 | shell: pwsh
|
---|
24 | run: pip install meson
|
---|
25 |
|
---|
26 | - name: Find Visual Studio
|
---|
27 | shell: pwsh
|
---|
28 | run: |
|
---|
29 | $installationPath = Get-VSSetupInstance `
|
---|
30 | | Select-VSSetupInstance -Require Microsoft.VisualStudio.Workload.NativeDesktop -Latest `
|
---|
31 | | Select-Object -ExpandProperty InstallationPath
|
---|
32 | Write-Output "VSDEVCMD=${installationPath}\Common7\Tools\VsDevCmd.bat" `
|
---|
33 | | Out-File -FilePath "${Env:GITHUB_ENV}" -Append
|
---|
34 |
|
---|
35 | - name: Build MSVC x86
|
---|
36 | shell: pwsh
|
---|
37 | run: |
|
---|
38 | & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" `
|
---|
39 | | % { , ($_ -Split '=', 2) } `
|
---|
40 | | % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) }
|
---|
41 | meson --buildtype release --backend vs2022 build-msvc-x86
|
---|
42 | msbuild -m build-msvc-x86/dxvk.sln
|
---|
43 |
|
---|
44 | - name: Build MSVC x64
|
---|
45 | shell: pwsh
|
---|
46 | run: |
|
---|
47 | & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x64 -host_arch=x64 -no_logo && set" `
|
---|
48 | | % { , ($_ -Split '=', 2) } `
|
---|
49 | | % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) }
|
---|
50 | meson --buildtype release --backend vs2022 build-msvc-x64
|
---|
51 | msbuild -m build-msvc-x64/dxvk.sln
|
---|