Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/android-kotlin-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions: {}
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
runs-on: android-build
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -40,18 +40,19 @@ jobs:

check-formatting:
needs: prepare
runs-on: ubuntu-latest
runs-on: android-build
container:
image: ${{ needs.prepare.outputs.container_image }}
volumes:
# node is symlinked in, w/o mounting it, when using a image node won't be found for the
# checkout action
# https://github.com/NixOS/nixpkgs/issues/306373
- /nix:/nix
- gradle-cache:/root/.gradle
steps:
# Fix for HOME path overridden by GH runners when building in containers, see:
# https://github.com/actions/runner/issues/863
- name: Fix HOME path
run: echo "HOME=/root" >> $GITHUB_ENV

- uses: actions/checkout@v4
with:
submodules: true

- name: Run ktfmt check
run: android/gradlew -p android ktfmtCheck :build-logic:ktfmtCheck
run: android/gradlew -p android ktfmtCheck :build-logic:ktfmtCheck --no-daemon
7 changes: 7 additions & 0 deletions ci/android/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@
#containersConf.settings = {
# StopSignal = 9;
#};

containersConf.settings = {
containers = {
# Increase pids_limit, otherwise ktfmt would always fail
pids_limit = 8096;
};
};
};
podman = {
dockerSocket.enable = true;
Expand Down
Loading