Skip to content

Commit

Permalink
Use moved Get-VSSetupInstance (2/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Nov 6, 2023
1 parent 642a3ad commit 6fb95f7
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion src/scripts/config-vsstudio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (("${env:GITLAB_CI}" -eq "true") -or ("${env:PC_CI}" -eq "true")) {

# Locate Visual Studio (Windows)
if ("${env:vsstudio_dir}" -eq "" -and (!(Test-Path -Path .ci/sd4/vsenv${ExportExt}) -or !(Test-Path -Path .ci/sd4/vsenv.ps1))) {
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine

$CompatibleVisualStudios = Get-CompatibleVisualStudios -ErrorIfNotFound
Expand Down
10 changes: 5 additions & 5 deletions test/gh-darwin/pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ runs:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions test/gh-linux/pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,18 +340,18 @@ runs:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
14 changes: 7 additions & 7 deletions test/gh-windows/pre/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,18 +373,18 @@ runs:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down Expand Up @@ -1862,7 +1862,7 @@ runs:
Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsDesktop"
}
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$allinstances = Get-VSSetupInstance
Expand All @@ -1887,7 +1887,7 @@ runs:
# Locate Visual Studio (Windows)
if ("${env:vsstudio_dir}" -eq "" -and (!(Test-Path -Path .ci/sd4/vsenv${ExportExt}) -or !(Test-Path -Path .ci/sd4/vsenv.ps1))) {
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$CompatibleVisualStudios = Get-CompatibleVisualStudios -ErrorIfNotFound
Expand Down
36 changes: 18 additions & 18 deletions test/gl/setup-dkml.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,18 @@ variables:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down Expand Up @@ -1957,7 +1957,7 @@ variables:
Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsDesktop"
}
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$allinstances = Get-VSSetupInstance
Expand All @@ -1982,7 +1982,7 @@ variables:
# Locate Visual Studio (Windows)
if ("${env:vsstudio_dir}" -eq "" -and (!(Test-Path -Path .ci/sd4/vsenv${ExportExt}) -or !(Test-Path -Path .ci/sd4/vsenv.ps1))) {
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$CompatibleVisualStudios = Get-CompatibleVisualStudios -ErrorIfNotFound
Expand Down Expand Up @@ -2076,7 +2076,7 @@ variables:
dir "C:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsDesktop"
}
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$allinstances = Get-VSSetupInstance
Expand Down Expand Up @@ -2587,18 +2587,18 @@ variables:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down Expand Up @@ -4296,18 +4296,18 @@ variables:
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions test/pc/setup-dkml-darwin_x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1019,18 +1019,18 @@ section_end checkout-info
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions test/pc/setup-dkml-linux_x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1026,18 +1026,18 @@ section_end checkout-info
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions test/pc/setup-dkml-linux_x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1026,18 +1026,18 @@ section_end checkout-info
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down
16 changes: 8 additions & 8 deletions test/pc/setup-dkml-windows_x86.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1269,18 +1269,18 @@ section_end checkout-info
install -d .ci/sd4/g
# dkml-runtime-distribution
# dkml-component-ocamlcompiler
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-runtime-distribution
# For 'Diagnose Visual Studio environment variables (Windows)' we need dkml-component-ocamlcompiler
# so that 'Import-Module Machine' and 'Get-VSSetupInstance' can be run.
# The version doesn't matter too much, as long as it has a functioning Get-VSSetupInstance
# that supports the Visual Studio versions of the latest GitLab CI and GitHub Actions machines.
# commit 4d6f1bfc3510c55ba4273cb240e43727854b5718 = WinSDK 19041 and VS 14.29
case "$dkml_host_abi" in
windows_*)
section_begin checkout-dkml-runtime-distribution 'Checkout dkml-runtime-distribution'
git_checkout dkml-runtime-distribution https://github.com/diskuv/dkml-runtime-distribution.git "4d6f1bfc3510c55ba4273cb240e43727854b5718"
section_end checkout-dkml-runtime-distribution
section_begin checkout-dkml-component-ocamlcompiler 'Checkout dkml-component-ocamlcompiler'
git_checkout dkml-component-ocamlcompiler https://github.com/diskuv/dkml-component-ocamlcompiler.git "b9142380b0b8771a0d02f8b88ea786152a6e3d09"
section_end checkout-dkml-component-ocamlcompiler
;;
esac
Expand Down Expand Up @@ -2632,7 +2632,7 @@ if ( "${env:VERBOSE}" -eq "true" ) {
Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsDesktop"
}
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$allinstances = Get-VSSetupInstance
Expand All @@ -2657,7 +2657,7 @@ if (("${env:GITLAB_CI}" -eq "true") -or ("${env:PC_CI}" -eq "true")) {
# Locate Visual Studio (Windows)
if ("${env:vsstudio_dir}" -eq "" -and (!(Test-Path -Path .ci/sd4/vsenv${ExportExt}) -or !(Test-Path -Path .ci/sd4/vsenv.ps1))) {
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine
$CompatibleVisualStudios = Get-CompatibleVisualStudios -ErrorIfNotFound
Expand Down Expand Up @@ -2746,7 +2746,7 @@ If ( "${env:VERBOSE}" -eq "true" ) {
Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\Extension SDKs\WindowsDesktop"
}

$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-runtime-distribution\src\windows"
$env:PSModulePath += "$([System.IO.Path]::PathSeparator).ci\sd4\g\dkml-component-ocamlcompiler\assets\staging-files\win32\SingletonInstall"
Import-Module Machine

$allinstances = Get-VSSetupInstance
Expand Down
Loading

0 comments on commit 6fb95f7

Please sign in to comment.