Skip to content

Commit cc3482b

Browse files
authored
github/mobile: Bind mount runner cache for android builds (#42291)
these jobs run without container, startup flags, setup that other CI has - so use the cache directory in the runner home Signed-off-by: Ryan Northey <[email protected]>
1 parent 57469de commit cc3482b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/mobile-android_build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ jobs:
8787
--config=mobile-rbe
8888
--config=mobile-android-release
8989
//examples/kotlin/hello_world:hello_envoy_kt
90+
bind-mounts: |
91+
default: |
92+
- src: /mnt/workspace
93+
target: GITHUB_WORKSPACE
94+
chown: "runner:runner"
95+
- src: /mnt/runner
96+
target: RUNNER_TEMP/container/bazel_root
97+
chown: "runner:runner"
98+
- src: /mnt/runner-home
99+
target: /home/runner/.cache/bazel
100+
chown: "runner:runner"
90101
request: ${{ needs.load.outputs.request }}
91102
target: kotlin-hello-world
92103
runs-on: ubuntu-22.04
@@ -116,6 +127,17 @@ jobs:
116127
command: ./bazelw
117128
container-command:
118129
args: ${{ matrix.args }}
130+
bind-mounts: |
131+
default: |
132+
- src: /mnt/workspace
133+
target: GITHUB_WORKSPACE
134+
chown: "runner:runner"
135+
- src: /mnt/runner
136+
target: RUNNER_TEMP/container/bazel_root
137+
chown: "runner:runner"
138+
- src: /mnt/runner-home
139+
target: /home/runner/.cache/bazel
140+
chown: "runner:runner"
119141
diskspace-hack-paths: |
120142
/opt/hostedtoolcache
121143
/usr/local/.ghcup

0 commit comments

Comments
 (0)