mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 04:38:53 +08:00
19 lines
807 B
PowerShell
19 lines
807 B
PowerShell
################################################################################
|
|
## File: Install-GDK.ps1
|
|
## Desc: Install Microsoft Game Developement Kit
|
|
################################################################################
|
|
|
|
# Preparation
|
|
$tempFolder = Join-Path $env:Tmp "GDK"
|
|
|
|
# Fetching Microsoft GDK release version
|
|
$GDKReleaseVersion = (Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/GDK/releases/latest").tag_name
|
|
|
|
# Cloning GDK repo and checking out to release
|
|
git clone --depth 1 --branch $GDKReleaseVersion "https://github.com/microsoft/GDK.git" $tempFolder
|
|
|
|
# Installing GDK
|
|
$GDKInstaller = Join-Path $tempFolder "pgdk.exe"
|
|
Install-Binary -FilePath $GDKInstaller -ArgumentList ("/quiet", "/norestart")
|
|
|
|
Invoke-PesterTests -Testfile "Tools" -TestName "Microsoft GDK" |