mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[skia, ompl, capnproto] Update VMs for 2020-08-12 (including VS 16.7) (#12884)
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
This commit is contained in:
parent
99212d675f
commit
8054263f15
14
ports/llvm/0004-fix-dr-1734.patch
Normal file
14
ports/llvm/0004-fix-dr-1734.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h
|
||||||
|
index b7d48e8e1ad..53ba24efc00 100644
|
||||||
|
--- a/llvm/include/llvm/Support/type_traits.h
|
||||||
|
+++ b/llvm/include/llvm/Support/type_traits.h
|
||||||
|
@@ -177,7 +177,8 @@ class is_trivially_copyable {
|
||||||
|
(has_deleted_copy_assign || has_trivial_copy_assign) &&
|
||||||
|
(has_deleted_copy_constructor || has_trivial_copy_constructor);
|
||||||
|
|
||||||
|
-#ifdef HAVE_STD_IS_TRIVIALLY_COPYABLE
|
||||||
|
+ // due to DR 1734, a type can be std::is_trivially_copyable but not llvm::is_trivially_copyable
|
||||||
|
+#if 0
|
||||||
|
static_assert(value == std::is_trivially_copyable<T>::value,
|
||||||
|
"inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable");
|
||||||
|
#endif
|
@ -1,5 +1,6 @@
|
|||||||
Source: llvm
|
Source: llvm
|
||||||
Version: 10.0.0-4
|
Version: 10.0.0
|
||||||
|
Port-Version: 5
|
||||||
Homepage: https://llvm.org/
|
Homepage: https://llvm.org/
|
||||||
Description: The LLVM Compiler Infrastructure
|
Description: The LLVM Compiler Infrastructure
|
||||||
Supports: !uwp
|
Supports: !uwp
|
||||||
|
@ -12,6 +12,7 @@ vcpkg_from_github(
|
|||||||
0001-allow-to-use-commas.patch
|
0001-allow-to-use-commas.patch
|
||||||
0002-fix-install-paths.patch
|
0002-fix-install-paths.patch
|
||||||
0003-fix-vs2019-v16.6.patch
|
0003-fix-vs2019-v16.6.patch
|
||||||
|
0004-fix-dr-1734.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Source: skia
|
Source: skia
|
||||||
Version: 2020-05-18
|
Version: 2020-05-18
|
||||||
Port-Version: 2
|
Port-Version: 3
|
||||||
Homepage: https://skia.org
|
Homepage: https://skia.org
|
||||||
Description: Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms.
|
Description: Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms.
|
||||||
It serves as the graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox and Firefox OS, and many other products.
|
It serves as the graphics engine for Google Chrome and Chrome OS, Android, Mozilla Firefox and Firefox OS, and many other products.
|
||||||
|
12
ports/skia/add-missing-tuple.patch
Normal file
12
ports/skia/add-missing-tuple.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/include/private/SkPathRef.h b/include/private/SkPathRef.h
|
||||||
|
index 7afe4f9..502f83e 100644
|
||||||
|
--- a/include/private/SkPathRef.h
|
||||||
|
+++ b/include/private/SkPathRef.h
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
|
#include <limits>
|
||||||
|
+#include <tuple>
|
||||||
|
|
||||||
|
class SkRBuffer;
|
||||||
|
class SkWBuffer;
|
@ -163,6 +163,11 @@ if(CMAKE_HOST_WIN32)
|
|||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
vcpkg_apply_patches(
|
||||||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
|
PATCHES add-missing-tuple.patch
|
||||||
|
)
|
||||||
|
|
||||||
vcpkg_configure_gn(
|
vcpkg_configure_gn(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
OPTIONS_DEBUG "${OPTIONS_DBG}"
|
OPTIONS_DEBUG "${OPTIONS_DBG}"
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
#
|
#
|
||||||
variables:
|
variables:
|
||||||
windows-pool: 'PrWin-2020-06-30'
|
windows-pool: 'PrWin-2020-08-12'
|
||||||
linux-pool: 'PrLin-2020-06-30'
|
linux-pool: 'PrLin-2020-08-12'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: check_cxx_formatting
|
- stage: check_cxx_formatting
|
||||||
@ -19,6 +19,7 @@ stages:
|
|||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/Check-CxxFormatting.ps1'
|
filePath: 'scripts/azure-pipelines/windows/Check-CxxFormatting.ps1'
|
||||||
arguments: '-Root .'
|
arguments: '-Root .'
|
||||||
|
pwsh: true
|
||||||
- stage: check_manifest_formatting
|
- stage: check_manifest_formatting
|
||||||
displayName: Check the formatting of port manifests
|
displayName: Check the formatting of port manifests
|
||||||
pool: $(windows-pool)
|
pool: $(windows-pool)
|
||||||
@ -36,6 +37,7 @@ stages:
|
|||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1'
|
filePath: 'scripts/azure-pipelines/windows/Check-ManifestFormatting.ps1'
|
||||||
arguments: '-Root .'
|
arguments: '-Root .'
|
||||||
|
pwsh: true
|
||||||
- stage: run_port_ci
|
- stage: run_port_ci
|
||||||
displayName: 'Run the Port CI'
|
displayName: 'Run the Port CI'
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
@ -220,7 +220,7 @@ Write-Progress `
|
|||||||
-Status 'Running provisioning script provision-image.sh in VM' `
|
-Status 'Running provisioning script provision-image.sh in VM' `
|
||||||
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
||||||
|
|
||||||
Invoke-AzVMRunCommand `
|
$ProvisionImageResult = Invoke-AzVMRunCommand `
|
||||||
-ResourceGroupName $ResourceGroupName `
|
-ResourceGroupName $ResourceGroupName `
|
||||||
-VMName $ProtoVMName `
|
-VMName $ProtoVMName `
|
||||||
-CommandId 'RunShellScript' `
|
-CommandId 'RunShellScript' `
|
||||||
@ -228,6 +228,8 @@ Invoke-AzVMRunCommand `
|
|||||||
-Parameter @{StorageAccountName=$StorageAccountName; `
|
-Parameter @{StorageAccountName=$StorageAccountName; `
|
||||||
StorageAccountKey=$StorageAccountKey;}
|
StorageAccountKey=$StorageAccountKey;}
|
||||||
|
|
||||||
|
Write-Host "provision-image.sh output: $($ProvisionImageResult.value.Message)"
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
Write-Progress `
|
Write-Progress `
|
||||||
-Activity $ProgressActivity `
|
-Activity $ProgressActivity `
|
||||||
|
@ -27,7 +27,10 @@ APT_PACKAGES="$APT_PACKAGES libxkbcommon-dev libxcb-keysyms1-dev \
|
|||||||
APT_PACKAGES="$APT_PACKAGES libkrb5-dev"
|
APT_PACKAGES="$APT_PACKAGES libkrb5-dev"
|
||||||
|
|
||||||
# Additionally required by mesa
|
# Additionally required by mesa
|
||||||
APT_PACKAGES="$APT_PACKAGES python3-setuptools"
|
APT_PACKAGES="$APT_PACKAGES python3-setuptools python3-mako"
|
||||||
|
|
||||||
|
# Additionally required by some packages to install additional python packages
|
||||||
|
APT_PACKAGES="$APT_PACKAGES python3-pip"
|
||||||
|
|
||||||
# Additionally required/installed by Azure DevOps Scale Set Agents
|
# Additionally required/installed by Azure DevOps Scale Set Agents
|
||||||
APT_PACKAGES="$APT_PACKAGES liblttng-ust0 libkrb5-3 zlib1g libicu60"
|
APT_PACKAGES="$APT_PACKAGES liblttng-ust0 libkrb5-3 zlib1g libicu60"
|
||||||
|
@ -20,11 +20,13 @@ jobs:
|
|||||||
displayName: 'Initialize Environment'
|
displayName: 'Initialize Environment'
|
||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/initialize-environment.ps1'
|
filePath: 'scripts/azure-pipelines/windows/initialize-environment.ps1'
|
||||||
|
pwsh: true
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Report on Disk Space'
|
displayName: 'Report on Disk Space'
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
||||||
|
pwsh: true
|
||||||
# Note: D: is the Azure machines' temporary disk.
|
# Note: D: is the Azure machines' temporary disk.
|
||||||
- script: .\bootstrap-vcpkg.bat
|
- script: .\bootstrap-vcpkg.bat
|
||||||
displayName: 'Build vcpkg'
|
displayName: 'Build vcpkg'
|
||||||
@ -49,17 +51,20 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/end-to-end-tests.ps1'
|
filePath: 'scripts/azure-pipelines/end-to-end-tests.ps1'
|
||||||
arguments: '-Triplet ${{ parameters.triplet }} -WorkingRoot ${{ variables.WORKING_ROOT }}'
|
arguments: '-Triplet ${{ parameters.triplet }} -WorkingRoot ${{ variables.WORKING_ROOT }}'
|
||||||
|
pwsh: true
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
displayName: '*** Test Modified Ports and Prepare Test Logs ***'
|
||||||
inputs:
|
inputs:
|
||||||
failOnStderr: true
|
failOnStderr: true
|
||||||
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
|
||||||
arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -ArchivesRoot W:\ -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactsDirectory $(System.ArtifactsDirectory)'
|
arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -ArchivesRoot W:\ -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactsDirectory $(System.ArtifactsDirectory)'
|
||||||
|
pwsh: true
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Report on Disk Space After Build'
|
displayName: 'Report on Disk Space After Build'
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
filePath: 'scripts/azure-pipelines/windows/disk-space.ps1'
|
||||||
|
pwsh: true
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact: failure logs for ${{ parameters.triplet }}'
|
displayName: 'Publish Artifact: failure logs for ${{ parameters.triplet }}'
|
||||||
inputs:
|
inputs:
|
||||||
@ -74,6 +79,7 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
./vcpkg.exe fetch python3
|
./vcpkg.exe fetch python3
|
||||||
& $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
|
& $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
|
||||||
|
pwsh: true
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
displayName: 'Publish Artifact: file lists for ${{ parameters.triplet }}'
|
displayName: 'Publish Artifact: file lists for ${{ parameters.triplet }}'
|
||||||
condition: always()
|
condition: always()
|
||||||
|
@ -198,7 +198,7 @@ Write-Progress `
|
|||||||
-Status 'Running provisioning script provision-image.txt (as a .ps1) in VM' `
|
-Status 'Running provisioning script provision-image.txt (as a .ps1) in VM' `
|
||||||
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
||||||
|
|
||||||
Invoke-AzVMRunCommand `
|
$ProvisionImageResult = Invoke-AzVMRunCommand `
|
||||||
-ResourceGroupName $ResourceGroupName `
|
-ResourceGroupName $ResourceGroupName `
|
||||||
-VMName $ProtoVMName `
|
-VMName $ProtoVMName `
|
||||||
-CommandId 'RunPowerShellScript' `
|
-CommandId 'RunPowerShellScript' `
|
||||||
@ -207,6 +207,8 @@ Invoke-AzVMRunCommand `
|
|||||||
StorageAccountName=$StorageAccountName; `
|
StorageAccountName=$StorageAccountName; `
|
||||||
StorageAccountKey=$StorageAccountKey;}
|
StorageAccountKey=$StorageAccountKey;}
|
||||||
|
|
||||||
|
Write-Host "provision-image.ps1 output: $($ProvisionImageResult.value.Message)"
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
Write-Progress `
|
Write-Progress `
|
||||||
-Activity $ProgressActivity `
|
-Activity $ProgressActivity `
|
||||||
@ -221,12 +223,14 @@ Write-Progress `
|
|||||||
-Status 'Running provisioning script sysprep.ps1 in VM' `
|
-Status 'Running provisioning script sysprep.ps1 in VM' `
|
||||||
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
-PercentComplete (100 / $TotalProgress * $CurrentProgress++)
|
||||||
|
|
||||||
Invoke-AzVMRunCommand `
|
$SysprepResult = Invoke-AzVMRunCommand `
|
||||||
-ResourceGroupName $ResourceGroupName `
|
-ResourceGroupName $ResourceGroupName `
|
||||||
-VMName $ProtoVMName `
|
-VMName $ProtoVMName `
|
||||||
-CommandId 'RunPowerShellScript' `
|
-CommandId 'RunPowerShellScript' `
|
||||||
-ScriptPath "$PSScriptRoot\sysprep.ps1"
|
-ScriptPath "$PSScriptRoot\sysprep.ps1"
|
||||||
|
|
||||||
|
Write-Host "sysprep.ps1 output: $($SysprepResult.value.Message)"
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
Write-Progress `
|
Write-Progress `
|
||||||
-Activity $ProgressActivity `
|
-Activity $ProgressActivity `
|
||||||
|
@ -7,7 +7,7 @@ Sets up a machine to be an image for a scale set.
|
|||||||
|
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
provision-image.ps1 runs on an existing, freshly provisioned virtual machine,
|
provision-image.ps1 runs on an existing, freshly provisioned virtual machine,
|
||||||
and sets that virtual machine up as a vcpkg build machine. After this is done,
|
and sets up that virtual machine as a build machine. After this is done,
|
||||||
(outside of this script), we take that machine and make it an image to be copied
|
(outside of this script), we take that machine and make it an image to be copied
|
||||||
for setting up new VMs in the scale set.
|
for setting up new VMs in the scale set.
|
||||||
|
|
||||||
@ -60,10 +60,14 @@ Function Get-TempFilePath {
|
|||||||
return Join-Path $tempPath $tempName
|
return Join-Path $tempPath $tempName
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-not [string]::IsNullOrEmpty($AdminUserPassword)) {
|
$TranscriptPath = 'C:\provision-image-transcript.txt'
|
||||||
Write-Host "AdminUser password supplied; switching to AdminUser"
|
|
||||||
|
if ([string]::IsNullOrEmpty($AdminUserPassword)) {
|
||||||
|
Start-Transcript -Path $TranscriptPath
|
||||||
|
} else {
|
||||||
|
Write-Host 'AdminUser password supplied; switching to AdminUser.'
|
||||||
$PsExecPath = Get-TempFilePath -Extension 'exe'
|
$PsExecPath = Get-TempFilePath -Extension 'exe'
|
||||||
Write-Host "Downloading psexec to $PsExecPath"
|
Write-Host "Downloading psexec to: $PsExecPath"
|
||||||
& curl.exe -L -o $PsExecPath -s -S https://live.sysinternals.com/PsExec64.exe
|
& curl.exe -L -o $PsExecPath -s -S https://live.sysinternals.com/PsExec64.exe
|
||||||
$PsExecArgs = @(
|
$PsExecArgs = @(
|
||||||
'-u',
|
'-u',
|
||||||
@ -89,8 +93,11 @@ if (-not [string]::IsNullOrEmpty($AdminUserPassword)) {
|
|||||||
$PsExecArgs += $StorageAccountKey
|
$PsExecArgs += $StorageAccountKey
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Executing $PsExecPath " + @PsExecArgs
|
Write-Host "Executing: $PsExecPath $PsExecArgs"
|
||||||
& $PsExecPath @PsExecArgs > C:\ProvisionLog.txt
|
|
||||||
|
$proc = Start-Process -FilePath $PsExecPath -ArgumentList $PsExecArgs -Wait -PassThru
|
||||||
|
Write-Host 'Reading transcript...'
|
||||||
|
Get-Content -Path $TranscriptPath
|
||||||
Write-Host 'Cleaning up...'
|
Write-Host 'Cleaning up...'
|
||||||
Remove-Item $PsExecPath
|
Remove-Item $PsExecPath
|
||||||
exit $proc.ExitCode
|
exit $proc.ExitCode
|
||||||
@ -118,7 +125,6 @@ $WindowsSDKUrl = 'https://download.microsoft.com/download/1/c/3/1c3d5161-d9e9-4e
|
|||||||
$WindowsWDKUrl = 'https://download.microsoft.com/download/1/a/7/1a730121-7aa7-46f7-8978-7db729aa413d/wdk/wdksetup.exe'
|
$WindowsWDKUrl = 'https://download.microsoft.com/download/1/a/7/1a730121-7aa7-46f7-8978-7db729aa413d/wdk/wdksetup.exe'
|
||||||
|
|
||||||
$MpiUrl = 'https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe'
|
$MpiUrl = 'https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe'
|
||||||
$LlvmUrl = 'https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe'
|
|
||||||
|
|
||||||
$CudaUrl = 'https://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_426.00_win10.exe'
|
$CudaUrl = 'https://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_426.00_win10.exe'
|
||||||
$CudaFeatures = 'nvcc_10.1 cuobjdump_10.1 nvprune_10.1 cupti_10.1 gpu_library_advisor_10.1 memcheck_10.1 ' + `
|
$CudaFeatures = 'nvcc_10.1 cuobjdump_10.1 nvprune_10.1 cupti_10.1 gpu_library_advisor_10.1 memcheck_10.1 ' + `
|
||||||
@ -127,7 +133,7 @@ $CudaFeatures = 'nvcc_10.1 cuobjdump_10.1 nvprune_10.1 cupti_10.1 gpu_library_ad
|
|||||||
'cusparse_dev_10.1 nvgraph_10.1 nvgraph_dev_10.1 npp_10.1 npp_dev_10.1 nvrtc_10.1 nvrtc_dev_10.1 nvml_dev_10.1 ' + `
|
'cusparse_dev_10.1 nvgraph_10.1 nvgraph_dev_10.1 npp_10.1 npp_dev_10.1 nvrtc_10.1 nvrtc_dev_10.1 nvml_dev_10.1 ' + `
|
||||||
'occupancy_calculator_10.1 fortran_examples_10.1'
|
'occupancy_calculator_10.1 fortran_examples_10.1'
|
||||||
|
|
||||||
$BinSkimUrl = 'https://www.nuget.org/api/v2/package/Microsoft.CodeAnalysis.BinSkim/1.6.0'
|
$PwshUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x64.msi'
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$ProgressPreference = 'SilentlyContinue'
|
$ProgressPreference = 'SilentlyContinue'
|
||||||
@ -191,7 +197,7 @@ Function InstallVisualStudio {
|
|||||||
Write-Host 'Downloading Visual Studio...'
|
Write-Host 'Downloading Visual Studio...'
|
||||||
[string]$bootstrapperExe = Get-TempFilePath -Extension 'exe'
|
[string]$bootstrapperExe = Get-TempFilePath -Extension 'exe'
|
||||||
curl.exe -L -o $bootstrapperExe -s -S $BootstrapperUrl
|
curl.exe -L -o $bootstrapperExe -s -S $BootstrapperUrl
|
||||||
Write-Host "Installing Visual Studio..."
|
Write-Host 'Installing Visual Studio...'
|
||||||
$args = @('/c', $bootstrapperExe, '--quiet', '--norestart', '--wait', '--nocache')
|
$args = @('/c', $bootstrapperExe, '--quiet', '--norestart', '--wait', '--nocache')
|
||||||
foreach ($workload in $Workloads) {
|
foreach ($workload in $Workloads) {
|
||||||
$args += '--add'
|
$args += '--add'
|
||||||
@ -362,59 +368,6 @@ Function InstallWindowsWDK {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Installs LLVM.
|
|
||||||
|
|
||||||
.DESCRIPTION
|
|
||||||
InstallLLVM installs LLVM from the supplied URL.
|
|
||||||
|
|
||||||
.PARAMETER Url
|
|
||||||
The URL of the LLVM installer.
|
|
||||||
#>
|
|
||||||
Function InstallLLVM {
|
|
||||||
Param(
|
|
||||||
[String]$Url
|
|
||||||
)
|
|
||||||
|
|
||||||
try {
|
|
||||||
Write-Host 'Downloading LLVM...'
|
|
||||||
[string]$installerPath = Get-TempFilePath -Extension 'exe'
|
|
||||||
curl.exe -L -o $installerPath -s -S $Url
|
|
||||||
Write-Host 'Installing LLVM...'
|
|
||||||
$proc = Start-Process -FilePath $installerPath -ArgumentList @('/S') -NoNewWindow -Wait -PassThru
|
|
||||||
PrintMsiExitCodeMessage $proc.ExitCode
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
Write-Error "Failed to install LLVM! $($_.Exception.Message)"
|
|
||||||
throw
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Installs LLVM.
|
|
||||||
|
|
||||||
.DESCRIPTION
|
|
||||||
InstallLLVM installs LLVM from the supplied URL.
|
|
||||||
|
|
||||||
.PARAMETER Url
|
|
||||||
The URL of the LLVM installer.
|
|
||||||
#>
|
|
||||||
Function InstallLLVM {
|
|
||||||
try {
|
|
||||||
Write-Host 'Downloading LLVM...'
|
|
||||||
[string]$installerPath = Get-TempFilePath -Extension 'exe'
|
|
||||||
curl.exe -L -o $installerPath -s -S $Url
|
|
||||||
Write-Host 'Installing LLVM...'
|
|
||||||
$proc = Start-Process -FilePath $installerPath -ArgumentList @('/S') -NoNewWindow -Wait -PassThru
|
|
||||||
PrintMsiExitCodeMessage $proc.ExitCode
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
Write-Error "Failed to install LLVM! $($_.Exception.Message)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs MPI
|
Installs MPI
|
||||||
@ -458,7 +411,7 @@ Installs NVIDIA's CUDA Toolkit.
|
|||||||
|
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
InstallCuda installs the CUDA Toolkit with the features specified as a
|
InstallCuda installs the CUDA Toolkit with the features specified as a
|
||||||
space separated list of strings in $Features.
|
space-separated list of strings in $Features.
|
||||||
|
|
||||||
.PARAMETER Url
|
.PARAMETER Url
|
||||||
The URL of the CUDA installer.
|
The URL of the CUDA installer.
|
||||||
@ -504,6 +457,7 @@ if ($null -eq $av) {
|
|||||||
Write-Host 'AntiVirus not installed, skipping exclusions.'
|
Write-Host 'AntiVirus not installed, skipping exclusions.'
|
||||||
} else {
|
} else {
|
||||||
Write-Host 'Configuring AntiVirus exclusions...'
|
Write-Host 'Configuring AntiVirus exclusions...'
|
||||||
|
Add-MpPreference -ExclusionPath C:\agent
|
||||||
Add-MPPreference -ExclusionPath D:\
|
Add-MPPreference -ExclusionPath D:\
|
||||||
Add-MPPreference -ExclusionProcess ninja.exe
|
Add-MPPreference -ExclusionProcess ninja.exe
|
||||||
Add-MPPreference -ExclusionProcess clang-cl.exe
|
Add-MPPreference -ExclusionProcess clang-cl.exe
|
||||||
@ -515,10 +469,9 @@ if ($null -eq $av) {
|
|||||||
InstallVisualStudio -Workloads $Workloads -BootstrapperUrl $VisualStudioBootstrapperUrl -Nickname 'Stable'
|
InstallVisualStudio -Workloads $Workloads -BootstrapperUrl $VisualStudioBootstrapperUrl -Nickname 'Stable'
|
||||||
InstallWindowsSDK -Url $WindowsSDKUrl
|
InstallWindowsSDK -Url $WindowsSDKUrl
|
||||||
InstallWindowsWDK -Url $WindowsWDKUrl
|
InstallWindowsWDK -Url $WindowsWDKUrl
|
||||||
InstallLLVM -Url $LlvmUrl
|
|
||||||
InstallMpi -Url $MpiUrl
|
InstallMpi -Url $MpiUrl
|
||||||
InstallCuda -Url $CudaUrl -Features $CudaFeatures
|
InstallCuda -Url $CudaUrl -Features $CudaFeatures
|
||||||
InstallZip -Url $BinSkimUrl -Name 'BinSkim' -Dir 'C:\BinSkim'
|
InstallMSI -Url $PwshUrl -Name 'PowerShell Core'
|
||||||
if ([string]::IsNullOrWhiteSpace($StorageAccountName)) {
|
if ([string]::IsNullOrWhiteSpace($StorageAccountName)) {
|
||||||
Write-Host 'No storage account name configured.'
|
Write-Host 'No storage account name configured.'
|
||||||
} else {
|
} else {
|
||||||
|
@ -14,4 +14,4 @@ for more information.
|
|||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
Write-Host 'Running sysprep'
|
Write-Host 'Running sysprep'
|
||||||
& C:\Windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown
|
& C:\Windows\system32\sysprep\sysprep.exe /oobe /generalize /mode:vm /shutdown
|
||||||
|
@ -153,6 +153,11 @@ caf:x64-uwp=fail
|
|||||||
caffe2:x86-windows=fail
|
caffe2:x86-windows=fail
|
||||||
caffe2:arm64-windows=fail
|
caffe2:arm64-windows=fail
|
||||||
cairomm:x64-linux=fail
|
cairomm:x64-linux=fail
|
||||||
|
# capnproto currently triggers an ICE
|
||||||
|
capnproto:x86-windows=fail
|
||||||
|
capnproto:x64-windows=fail
|
||||||
|
capnproto:x64-windows-static=fail
|
||||||
|
# capnproto doesn't support arm, arm64, or UWP
|
||||||
capnproto:arm64-windows=fail
|
capnproto:arm64-windows=fail
|
||||||
capnproto:arm-uwp=fail
|
capnproto:arm-uwp=fail
|
||||||
capnproto:x64-uwp=fail
|
capnproto:x64-uwp=fail
|
||||||
@ -517,6 +522,8 @@ gmmlib:x64-uwp=fail
|
|||||||
gmmlib:x64-windows=fail
|
gmmlib:x64-windows=fail
|
||||||
gmmlib:x64-windows-static=fail
|
gmmlib:x64-windows-static=fail
|
||||||
gmmlib:x86-windows=fail
|
gmmlib:x86-windows=fail
|
||||||
|
# VS 2019 16.7 broke gmp UWP https://github.com/microsoft/vcpkg/issues/13172
|
||||||
|
gmp:x64-uwp=fail
|
||||||
google-cloud-cpp:arm64-windows=fail
|
google-cloud-cpp:arm64-windows=fail
|
||||||
google-cloud-cpp:arm-uwp=fail
|
google-cloud-cpp:arm-uwp=fail
|
||||||
google-cloud-cpp:x64-uwp=fail
|
google-cloud-cpp:x64-uwp=fail
|
||||||
@ -1181,6 +1188,17 @@ ogre-next:x86-windows = skip
|
|||||||
ois:arm64-windows=fail
|
ois:arm64-windows=fail
|
||||||
ois:arm-uwp=fail
|
ois:arm-uwp=fail
|
||||||
ois:x64-uwp=fail
|
ois:x64-uwp=fail
|
||||||
|
# ompl is vulnerable to some form of race in its dependent ports, and adding 'ode' as a dependency
|
||||||
|
# does not resolve the issue
|
||||||
|
# src/ompl/CMakeFiles/ompl.dir/extensions/ode/src/OpenDEStateValidityChecker.cpp.o
|
||||||
|
# -L/mnt/vcpkg-ci/packages/flann_x64-linux/debug/lib -L/mnt/vcpkg-ci/packages/ode_x64-linux/debug/lib
|
||||||
|
# -Wl,-rpath,/mnt/vcpkg-ci/packages/flann_x64-linux/debug/lib:/mnt/vcpkg-ci/packages/ode_x64-linux/debug/lib::::::::::::::::::::::::::::::::::::::::::::::::
|
||||||
|
# -lode /mnt/vcpkg-ci/installed/x64-linux/debug/lib/libboost_serialization.a
|
||||||
|
# /mnt/vcpkg-ci/installed/x64-linux/debug/lib/libboost_filesystem.a
|
||||||
|
# /mnt/vcpkg-ci/installed/x64-linux/debug/lib/libboost_system.a -lpthread && :
|
||||||
|
# /usr/bin/ld: cannot find -lode
|
||||||
|
ompl:x64-osx=fail
|
||||||
|
ompl:x64-linux=fail
|
||||||
open62541:arm-uwp=fail
|
open62541:arm-uwp=fail
|
||||||
open62541:x64-uwp=fail
|
open62541:x64-uwp=fail
|
||||||
openal-soft:arm-uwp=fail
|
openal-soft:arm-uwp=fail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user