Skip to content

Commit 9dde8c5

Browse files
committed
GHA: enable caching of the NDK
Enable caching for the NDK when installing to speed up subsequent installations. This is important as the Android NDK installation takes ~6x longer than the longest step for jobs such as zlib.
1 parent f771676 commit 9dde8c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ jobs:
515515
id: setup-ndk
516516
with:
517517
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
518+
local-cache: true
518519

519520
- name: Configure DS2
520521
if: inputs.build_android
@@ -1075,6 +1076,7 @@ jobs:
10751076
id: setup-ndk
10761077
with:
10771078
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
1079+
local-cache: true
10781080

10791081
- name: Compute workspace hash
10801082
id: workspace_hash
@@ -1384,6 +1386,7 @@ jobs:
13841386
id: setup-ndk
13851387
with:
13861388
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
1389+
local-cache: true
13871390

13881391
- name: Configure zlib
13891392
run: |
@@ -1486,6 +1489,7 @@ jobs:
14861489
id: setup-ndk
14871490
with:
14881491
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
1492+
local-cache: true
14891493

14901494
- name: Configure curl
14911495
run: |
@@ -1660,6 +1664,7 @@ jobs:
16601664
id: setup-ndk
16611665
with:
16621666
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
1667+
local-cache: true
16631668

16641669
- name: Configure libxml2
16651670
run: |
@@ -1783,6 +1788,7 @@ jobs:
17831788
id: setup-ndk
17841789
with:
17851790
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
1791+
local-cache: true
17861792

17871793
- name: Configure LLVM
17881794
if: matrix.os != 'Android' || inputs.build_android
@@ -2361,6 +2367,7 @@ jobs:
23612367
id: setup-ndk
23622368
with:
23632369
ndk-version: ${{ inputs.ANDROID_NDK_VERSION }}
2370+
local-cache: true
23642371

23652372
- name: Create vfs-overlay
23662373
if: matrix.os == 'Windows'

0 commit comments

Comments
 (0)