-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (35 loc) · 944 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Check
on: workflow_call
jobs:
check-format:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java™ Setup
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
log-accepted-android-sdk-licenses: false
packages: "tools platform-tools cmake;3.31.1"
- name: Check Code Format
run: ./gradlew checkFormat
check-jni:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Java™ Setup
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Check JNI
run: |
cd tools/jni-test && \
cmake -S. -Bbuild && \
cmake --build build --target run