-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (54 loc) · 1.87 KB
/
Copy pathkernelrace-ci.yml
File metadata and controls
63 lines (54 loc) · 1.87 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: KernelRace CI
on:
pull_request:
paths:
- "KernelRace/**"
- "skainet-ui/**"
- ".github/workflows/kernelrace-ci.yml"
push:
branches:
- develop
paths:
- "KernelRace/**"
- "skainet-ui/**"
- ".github/workflows/kernelrace-ci.yml"
concurrency:
group: kernelrace-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Make gradlew executable
run: chmod +x KernelRace/gradlew
# composeApp's Kotlin compile tasks depend on the bundled GGUF (fetchModel — see
# composeApp/build.gradle.kts) even for a plain compile check, since Compose resource
# processing needs the file present. Cache it so only the first run per model version
# pays the ~145 MB download.
- name: Cache bundled GGUF model
uses: actions/cache@v4
with:
path: KernelRace/composeApp/src/commonMain/composeResources/files/SmolLM2-135M-Instruct-Q8_0.gguf
key: kernelrace-smollm2-q8_0-gguf-v1
# Unit tests on JVM + Android (no device), the Android debug APK assembly (proves the
# JNI kernel packaging), and a wasm compile check. Deliberately skips instrumented tests
# (needs a real device) to keep this a fast PR check.
- name: Build and test
working-directory: KernelRace
run: |
./gradlew \
:shared:jvmTest \
:shared:testAndroidHostTest \
:androidApp:assembleDebug \
:shared:compileKotlinWasmJs \
:composeApp:compileKotlinWasmJs \
--console=plain