-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjitpack.yml
More file actions
43 lines (40 loc) · 2.18 KB
/
Copy pathjitpack.yml
File metadata and controls
43 lines (40 loc) · 2.18 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
# Build configuration for https://jitpack.io
#
# NOTE: Maven Central is now the preferred distribution channel for the Kotlin
# KMP artifacts (org.meshtastic:takpacket-sdk). JitPack remains as a fallback
# for consumers that haven't migrated yet.
#
# JitPack clones the repo with submodules, runs the `install` step below, and
# serves the resulting Maven artifacts under the coordinate
# com.github.meshtastic:TAKPacket-SDK:<version>
# where <version> is a git tag, commit SHA, or `master-SNAPSHOT`.
#
# Only the Kotlin / KMP module is published through JitPack. The Swift,
# TypeScript, C#, and Python modules have their own distribution channels
# (SwiftPM, npm, NuGet, PyPI) so JitPack doesn't need to touch them.
#
# The SDK is a full kotlin("multiplatform") project: it declares jvm, js,
# wasmJs, wasmWasi, and 9 native targets (ios x3, macosArm64, tvos x2, linux x2,
# mingwX64). Gradle metadata lets consumers resolve the right variant
# automatically. JitPack only serves the JVM variant as the fallback channel —
# `publishToMavenLocal` here runs on a JVM-only CI host, so Android and desktop
# JVM consumers pull the `-jvm` classifier from JitPack while the native/JS/Wasm
# klibs are published via Maven Central. (iOS consumers use the MeshtasticTAK
# Swift package rather than the Kotlin/Native klibs.)
jdk:
- openjdk17
before_install:
# The Kotlin build no longer needs the protobufs submodule — it gets its
# proto types from the published org.meshtastic:protobufs artifact, not from
# local Wire codegen (there is no Wire plugin / `sourcePath` anymore). The
# submodule is still the schema source for the Swift/Python/TS/C# bindings,
# but JitPack only builds the Kotlin module below, so it never reads it.
# This init is kept purely as harmless belt-and-suspenders (JitPack already
# clones with --recurse-submodules by default).
- git submodule update --init --recursive
install:
# `publishToMavenLocal` emits the KMP variants (metadata + jvm) under
# ~/.m2/repository/, which is where JitPack picks them up. The `--no-daemon`
# flag keeps the CI container from hanging on to Gradle workers after the
# build completes.
- cd kotlin && ./gradlew publishToMavenLocal --no-daemon