Skip to content

Commit ba226fa

Browse files
committed
android-ndk-r28b
1 parent 4630c36 commit ba226fa

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

scripts/azure-pipelines/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ parameters:
99
- name: tripletPattern
1010
displayName: 'Enable triplets which contain this substring'
1111
type: string
12-
default: '-'
12+
default: 'android'
1313

1414
jobs:
1515
- template: windows/azure-pipelines.yml

scripts/azure-pipelines/test-modified-ports.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,19 @@ if ($Triplet -eq 'x64-windows-release') {
128128
$tripletArg = "--triplet=$Triplet"
129129
}
130130

131+
$override_ndk = 'r28b'
132+
if ($IsLinux -and $Triplet -match 'android' -and $override_ndk -ne '')
133+
{
134+
$override_ndk_url = 'https://dl.google.com/android/repository/android-ndk-r28b-linux.zip'
135+
$override_ndk_sha512 = '25f4517febcc6a37a762ec158daf42ff4bd6fd6ea643959395eef109f4f29a8f5256ee997f7c40fee66282686f19cd254c17d2f7ccfa80a4f601bff262997f57'
136+
Write-Host "Downloading Android NDK $override_ndk"
137+
& "./vcpkg" x-download android-ndk-$override_ndk-linux.zip "--sha512=$override_ndk_sha512" "--url=$override_ndk_url" @cachingArgs
138+
Write-Host "Unpacking"
139+
& unzip -q android-ndk-$override_ndk-linux.zip
140+
$env:ANDROID_NDK_HOME = Join-Path $Pwd "android-ndk-$override_ndk"
141+
$NoParentHashes = $true
142+
}
143+
131144
$failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs'
132145
$failureLogsArg = "--failure-logs=$failureLogs"
133146
$knownFailuresFromArgs = @()

0 commit comments

Comments
 (0)