mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
[ubuntu] Refactor Toolset functions (#8948)
This commit is contained in:
committed by
GitHub
parent
a9bc069a35
commit
0ade9f36d3
@@ -155,7 +155,7 @@ function Get-AndroidGoogleAPIsVersions {
|
||||
function Get-AndroidNDKVersions {
|
||||
$ndkFolderPath = Join-Path (Get-AndroidSDKRoot) "ndk"
|
||||
$versions = Get-ChildItem -Path $ndkFolderPath -Name
|
||||
$ndkDefaultVersion = Get-ToolsetValue "android.ndk.default"
|
||||
$ndkDefaultVersion = (Get-ToolsetContent).android.ndk.default
|
||||
$ndkDefaultFullVersion = Get-ChildItem "$env:ANDROID_HOME/ndk/$ndkDefaultVersion.*" -Name | Select-Object -Last 1
|
||||
|
||||
return ($versions | ForEach-Object {
|
||||
|
||||
Reference in New Issue
Block a user