2022-12-05 08:00:28 +00:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# http://go.microsoft.com/fwlink/?LinkID=615560
# Builds the math3 test suite for Windows Subsystem for Linux (WSL)
schedules :
- cron : "0 3 * * *"
displayName : 'Nightly build'
branches :
include :
- main
2023-02-10 02:51:40 +00:00
trigger :
branches :
include :
- main
paths :
exclude :
2024-04-05 05:53:53 +00:00
- '*.md'
2023-02-10 02:51:40 +00:00
- LICENSE
2024-07-30 03:15:54 +00:00
- '.github/*'
2024-04-05 05:53:53 +00:00
- '.nuget/*'
2024-09-05 00:50:21 +00:00
- build/*.ps1
2024-04-05 05:53:53 +00:00
2023-02-10 02:51:40 +00:00
pr :
branches :
include :
- main
paths :
exclude :
2024-04-05 05:53:53 +00:00
- '*.md'
2023-02-10 02:51:40 +00:00
- LICENSE
2024-07-30 03:15:54 +00:00
- '.github/*'
2024-04-05 05:53:53 +00:00
- '.nuget/*'
2023-02-10 02:51:40 +00:00
drafts : false
2022-12-05 08:00:28 +00:00
resources :
repositories :
- repository : self
type : git
ref : refs/heads/main
name : $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
pool :
vmImage : ubuntu-20.04
variables :
2024-05-14 19:58:59 +00:00
Codeql.Enabled : false
2022-12-05 08:00:28 +00:00
GITHUB_PAT : $(GITHUBPUBLICTOKEN)
jobs :
- job : BUILD_WSL
displayName : 'Windows Subsystem for Linux (WSL)'
steps :
- checkout : self
clean : true
fetchTags : false
- task : CmdLine@2
displayName : Fetch tests
inputs :
2023-11-15 23:38:51 +00:00
script : git clone --quiet --no-tags https://%GITHUB_PAT%@github.com/walbourn/directxmathtest.git Tests
2022-12-05 08:00:28 +00:00
- task : CMake@1
displayName : DirectXMath Tests
inputs :
cwd : Tests
cmakeArgs : .
- task : PowerShell@2
displayName : Fetch SAL.H
inputs :
targetType : inline
script : |
$ProgressPreference = 'SilentlyContinue'
2024-02-02 18:07:03 +00:00
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
2022-12-05 08:34:56 +00:00
$fileHash = Get-FileHash -Algorithm SHA512 $(Build.SourcesDirectory)/Inc/sal.h | ForEach { $_.Hash} | Out-String
2022-12-05 08:00:28 +00:00
$filehash = $fileHash.Trim()
Write-Host "##[debug]SHA512: " $filehash
2024-02-02 18:07:03 +00:00
if ($fileHash -ne "0f5a80b97564217db2ba3e4624cc9eb308e19cc9911dae21d983c4ab37003f4756473297ba81b386c498514cedc1ef5a3553d7002edc09aeb6a1335df973095f") {
2022-12-05 08:00:28 +00:00
Write-Error -Message "##[error]Computed hash does not match!" -ErrorAction Stop
}
- task : CMake@1
displayName : DirectXMath Tests Build
inputs :
cwd : Tests
cmakeArgs : --build . -v