File tree Expand file tree Collapse file tree 1 file changed +86
-0
lines changed
Expand file tree Collapse file tree 1 file changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation.
2+ # Licensed under the MIT License.
3+ #
4+ # http://go.microsoft.com/fwlink/?LinkID=615560
5+
6+ # Builds the math3 test suite for Windows Subsystem for Linux (WSL)
7+
8+ schedules :
9+ - cron : " 0 3 * * *"
10+ displayName : ' Nightly build'
11+ branches :
12+ include :
13+ - main
14+
15+ trigger : none
16+
17+ pr :
18+ branches :
19+ include :
20+ - main
21+ paths :
22+ include :
23+ - ' .azuredevops/pipelines/DirectXMath-GitHub-WSL-11.yml'
24+ - CMake*
25+ - build/*.cmake
26+ - build/*.in
27+
28+ resources :
29+ repositories :
30+ - repository : self
31+ type : git
32+ ref : refs/heads/main
33+ trigger : none
34+ - repository : testRepo
35+ name : walbourn/directxmathtest
36+ type : github
37+ endpoint : microsoft
38+ ref : refs/heads/main
39+
40+ name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
41+
42+ pool :
43+ vmImage : ubuntu-24.04
44+
45+ variables :
46+ Codeql.Enabled : false
47+
48+ jobs :
49+ - job : BUILD_WSL
50+ displayName : ' Windows Subsystem for Linux (WSL)'
51+ steps :
52+ - checkout : self
53+ clean : true
54+ fetchTags : false
55+ fetchDepth : 1
56+ path : ' s'
57+ - checkout : testRepo
58+ displayName : Fetch Tests
59+ clean : true
60+ fetchTags : false
61+ fetchDepth : 1
62+ path : ' s/Tests'
63+ - task : CMake@1
64+ displayName : DirectXMath Tests
65+ inputs :
66+ cwd : Tests
67+ cmakeArgs : .
68+ - task : PowerShell@2
69+ displayName : Fetch SAL.H
70+ inputs :
71+ targetType : inline
72+ script : |
73+ $ProgressPreference = 'SilentlyContinue'
74+ Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/runtime/v8.0.1/src/coreclr/pal/inc/rt/sal.h -OutFile $(Build.SourcesDirectory)/Inc/sal.h
75+ $fileHash = Get-FileHash -Algorithm SHA512 $(Build.SourcesDirectory)/Inc/sal.h | ForEach { $_.Hash} | Out-String
76+ $filehash = $fileHash.Trim()
77+ Write-Host "##[debug]SHA512: " $filehash
78+ if ($fileHash -ne "0f5a80b97564217db2ba3e4624cc9eb308e19cc9911dae21d983c4ab37003f4756473297ba81b386c498514cedc1ef5a3553d7002edc09aeb6a1335df973095f") {
79+ Write-Error -Message "##[error]Computed hash does not match!" -ErrorAction Stop
80+ }
81+
82+ - task : CMake@1
83+ displayName : DirectXMath Tests Build
84+ inputs :
85+ cwd : Tests
86+ cmakeArgs : --build . -v
You can’t perform that action at this time.
0 commit comments