mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
CI: Try really hard to get updated Windows TLS certs
Windows doesn't actually distribute a full TLS CA certificate store, but
pulls them in over time with Windows Update. Try to prime it by manually
pulling the certificates and installing them.
This bumps the Windows tag to force a rebuild.
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9618>
(cherry picked from commit e6aacec9e1)
Conflicts:
.gitlab-ci.yml
This commit is contained in:
parent
296053b9e4
commit
1e5f33d1f8
2 changed files with 13 additions and 2 deletions
|
|
@ -445,7 +445,7 @@ armhf_test:
|
||||||
|
|
||||||
.windows-docker-vs2019:
|
.windows-docker-vs2019:
|
||||||
variables:
|
variables:
|
||||||
WINDOWS_TAG: "2021-01-29"
|
WINDOWS_TAG: "2021-03-15-tls"
|
||||||
WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:${WINDOWS_TAG}-${MESA_TEMPLATES_COMMIT}"
|
WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/windows/x64_build:${WINDOWS_TAG}-${MESA_TEMPLATES_COMMIT}"
|
||||||
WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:${WINDOWS_TAG}-${MESA_TEMPLATES_COMMIT}"
|
WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$FDO_UPSTREAM_REPO/windows/x64_build:${WINDOWS_TAG}-${MESA_TEMPLATES_COMMIT}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,14 @@
|
||||||
|
# Download new TLS certs from Windows Update
|
||||||
|
Get-Date
|
||||||
|
Write-Host "Updating TLS certificate store"
|
||||||
|
$certdir = (New-Item -ItemType Directory -Name "_tlscerts")
|
||||||
|
certutil -syncwithWU "$certdir"
|
||||||
|
Foreach ($file in (Get-ChildItem -Path "$certdir\*" -Include "*.crt")) {
|
||||||
|
Import-Certificate -FilePath $file -CertStoreLocation Cert:\LocalMachine\Root
|
||||||
|
}
|
||||||
|
Remove-Item -Recurse -Path $certdir
|
||||||
|
|
||||||
|
|
||||||
Get-Date
|
Get-Date
|
||||||
Write-Host "Installing Chocolatey"
|
Write-Host "Installing Chocolatey"
|
||||||
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
|
|
@ -41,7 +52,7 @@ if (!$?) {
|
||||||
|
|
||||||
# we want more secure TLS 1.2 for most things, but it breaks SourceForge
|
# we want more secure TLS 1.2 for most things, but it breaks SourceForge
|
||||||
# downloads so must be done after Chocolatey use
|
# downloads so must be done after Chocolatey use
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13;
|
||||||
|
|
||||||
Get-Date
|
Get-Date
|
||||||
Write-Host "Cloning LLVM master"
|
Write-Host "Cloning LLVM master"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue