-
Notifications
You must be signed in to change notification settings - Fork 70
/
appveyor-fix-vs2022-images.yml
74 lines (59 loc) · 2.46 KB
/
appveyor-fix-vs2022-images.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
environment:
matrix:
# Hyper-V
# =======
- job_name: VS 2022 on Hyper-V
APPVEYOR_BUILD_WORKER_IMAGE: vs2022-master
APPVEYOR_BAKE_IMAGE: vs2022-master
# GCE
# =======
# - job_name: VS 2022 on GCE us-central1
# APPVEYOR_BUILD_WORKER_IMAGE: vs2022-master-gce-us-central1
# APPVEYOR_BAKE_IMAGE: vs2022-master-gce-us-central1
# Azure
# =======
# - job_name: VS 2022 on Azure West US
# APPVEYOR_BUILD_WORKER_IMAGE: vs2022-master-azure-westus
# APPVEYOR_BAKE_IMAGE: vs2022-master-azure-westus
init:
- appveyor version
#- ps: $ErrorActionPreference = 'Stop'
- ps: $env:cloud_type = (Get-ItemProperty "HKLM:\Software\AppVeyor\Build Agent").Mode
- ps: 'Write-Host "OS Build: $((Get-CimInstance Win32_OperatingSystem).BuildNumber)"'
clone_folder: '%USERPROFILE%\image-bake-scripts'
clone_script:
- ps: Invoke-WebRequest "https://github.com/appveyor/build-images/archive/$($env:APPVEYOR_REPO_COMMIT).zip" -OutFile "$env:temp\scripts.zip"
- ps: Expand-Archive -Path "$env:temp\scripts.zip" -DestinationPath "$env:temp\scripts" -Force
- ps: Copy-Item -Path "$env:temp\scripts\build-images-$($env:APPVEYOR_REPO_COMMIT)\scripts\Windows\*" -Destination $env:APPVEYOR_BUILD_FOLDER -Recurse
test: off
# on_failure:
# - ps: Get-EventLog AppVeyor -newest 10 | Format-List
build_script:
#- ps: if ($env:cloud_type -eq 'Azure') { .\extend_system_volume.ps1 }
#- ps: .\install_dotnet_core_sdks.ps1
# - ps: .\install_qt_ifw_windows.ps1
#- ps: .\install_cmake.ps1
#- ps: .\install_qt_fast_windows.ps1
# - dir C:\Qt\6.2
# - dir C:\Qt\Tools
# - dir C:\Qt\Tools\QtInstallerFramework
#- ps: .\add_ssh_known_hosts.ps1
# - ps: if ($env:cloud_type -eq 'HyperV') { .\extend_system_volume.ps1 }
# - ps: .\install_qt_fast_windows.ps1
#- ps: .\install_go.ps1
#- ps: ./install_nodejs_latest.ps1
#- ps: ./install_selenium_drivers.ps1
#- ps: ./install_mingw.ps1
#- ps: .\install_nunit3.ps1
# Restart VM
# - ps: Start-Sleep -s 5; Restart-Computer -Force
# - ps: Start-Sleep -s 5
# - ps: .\install_sql_server_2022.ps1
# - ps: Start-Sleep -s 5; Restart-Computer
# - ps: Start-Sleep -s 5
# - ps: .\install_sql_server_2022_after_restart.ps1
- ps: choco feature enable -n allowGlobalConfirmation
- appveyor version
- ps: .\cleanup_windows.ps1
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))