Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Bogacki <krzysztof.bogacki@leancode.pl>2022-01-16 14:58:02 +0300
committerJoshie <joshua@froggi.es>2022-02-01 21:50:00 +0300
commitc50a650b13ae9ca0faf264c9af91c028bdfaeb05 (patch)
treeac663b33bee7be572233880aad75dbfaa2be8bc6 /.github
parentb220c8989b0a8006360c6d2c7bd2a5cda9064e7c (diff)
[build] MSVC CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-build-windows.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/test-build-windows.yml b/.github/workflows/test-build-windows.yml
new file mode 100644
index 00000000..029ddeda
--- /dev/null
+++ b/.github/workflows/test-build-windows.yml
@@ -0,0 +1,53 @@
+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
+ uses: actions/checkout@v2
+ with:
+ submodules: recursive
+
+ - name: Setup glslangValidator
+ shell: pwsh
+ run: |
+ choco install vulkan-sdk -y
+ Write-Output "$([System.Environment]::GetEnvironmentVariable('VULKAN_SDK', 'Machine'))\Bin" `
+ | Out-File -FilePath "${Env:GITHUB_PATH}" -Append
+ - name: Setup Meson and Ninja
+ shell: pwsh
+ run: pip install meson ninja
+
+ - 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
+ - name: Prepare MSVC x86
+ shell: pwsh
+ run: |
+ & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" `
+ | Out-File -FilePath "${Env:GITHUB_ENV}" -Append
+ - name: Build MSVC x86
+ shell: pwsh
+ run: |
+ meson --buildtype release build-msvc-x86
+ ninja -C build-msvc-x86
+ - name: Prepare MSVC x64
+ shell: pwsh
+ run: |
+ & "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x64 -host_arch=x64 -no_logo && set" `
+ | Out-File -FilePath "${Env:GITHUB_ENV}" -Append
+ - name: Build MSVC x64
+ shell: pwsh
+ run: |
+ meson --buildtype release build-msvc-x64
+ ninja -C build-msvc-x64