Skip to content

Commit 398cacf

Browse files
ci: install Ninja for Android build
1 parent 6480874 commit 398cacf

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ on:
88
- "**/*.kts"
99
- "**/jni/*"
1010
- gradle/**
11+
- gradle.properties
1112
pull_request:
1213
paths:
1314
- "/*.kt"
1415
- "**/*.kts"
1516
- "**/jni/*"
1617
- gradle/**
18+
- gradle.properties
1719

1820
concurrency:
1921
cancel-in-progress: true
@@ -144,6 +146,11 @@ jobs:
144146
tar -xzf - -C "$RUNNER_TOOL_CACHE/konan/dependencies"
145147
env:
146148
DEP: apple-llvm-20200714-macos-aarch64-essentials
149+
- name: Set up Ninja
150+
if: matrix.platform == 'Android'
151+
run: |-
152+
sudo apt-get update
153+
sudo apt-get install -y ninja-build
147154
- name: Run tests
148155
run: ./gradlew --no-daemon ${{matrix.targets}}
149156
env:

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
with:
5555
path: ${{runner.tool_cache}}/konan/dependencies
5656
key: konan-${{runner.os}}-dependencies
57+
- name: Set up Ninja
58+
run: |-
59+
sudo apt-get update
60+
sudo apt-get install -y ninja-build
5761
- name: Build documentation
5862
run: ./gradlew --no-daemon generateFiles :ktreesitter:dokkaHtml
5963
env:

.github/workflows/publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ jobs:
153153
path: ktreesitter/src/jvmMain/resources/lib
154154
pattern: ktreesitter-lib-*
155155
merge-multiple: true
156+
- name: Set up Ninja
157+
if: matrix.platform == 'Android'
158+
run: |-
159+
sudo apt-get update
160+
sudo apt-get install -y ninja-build
156161
- name: Build packages
157162
run: ./gradlew --no-daemon ${{matrix.targets}}
158163
env:

0 commit comments

Comments
 (0)