• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Compiling tests deps
2 
3 $ProgressPreference = "SilentlyContinue"
4 $MyPath = $MyInvocation.MyCommand.Path | Split-Path -Parent
5 . "$MyPath\mesa_init_msvc.ps1"
6 
7 $spirv_samples_source = Join-Path -Path "$PWD" -ChildPath "spirv-samples"
8 
9 Write-Host "Cloning spirv-samples at:"
10 Get-Date
11 New-Item -ItemType Directory -Path "$spirv_samples_source" | Out-Null
12 Push-Location -Path $spirv_samples_source
13 git init
14 git remote add origin https://github.com/dneto0/spirv-samples.git
15 git fetch --depth 1 origin 36372636df06a24c4e2de1551beee055db01b91d # of branch main
16 if (!$?) {
17   Write-Host "Failed to fetch spirv-samples repository"
18   Pop-Location
19   Exit 1
20 }
21 git checkout FETCH_HEAD
22 Pop-Location
23 Remove-Item -Recurse -Force -ErrorAction SilentlyContinue -Path "$spirv_samples_source\.git" | Out-Null
24 
25 Write-Host "Cloning spirv-samples finished at:"
26 Get-Date
27 
28 Write-Host "Complete Dockerfile_test at:"
29 Get-Date
30