Skip to content

Commit bdb1c51

Browse files
committed
Migrate ktfmt check workflow to new builder
1 parent 9a001fc commit bdb1c51

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/android-kotlin-format-check.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions: {}
1919
jobs:
2020
prepare:
2121
name: Prepare
22-
runs-on: ubuntu-latest
22+
runs-on: android-build
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
@@ -40,9 +40,15 @@ jobs:
4040

4141
check-formatting:
4242
needs: prepare
43-
runs-on: ubuntu-latest
43+
runs-on: android-build
4444
container:
4545
image: ${{ needs.prepare.outputs.container_image }}
46+
volumes:
47+
# node is symlinked in, w/o mounting it, when using a image node won't be found for the
48+
# checkout action
49+
# https://github.com/NixOS/nixpkgs/issues/306373
50+
- /nix:/nix
51+
- gradle-cache:/root/.gradle
4652
steps:
4753
# Fix for HOME path overridden by GH runners when building in containers, see:
4854
# https://github.com/actions/runner/issues/863

0 commit comments

Comments
 (0)