-
Notifications
You must be signed in to change notification settings - Fork 10
/
jitpack.yml
33 lines (33 loc) · 1.4 KB
/
jitpack.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
jdk:
- openjdk17
before_install:
- ls ./
# Running preparation script
- ./crates/core/liveview-native-core-jetpack/scripts/prepareJitpackEnvironment.sh
# Installing Java 8 because Android SDK manager needs XML Binds which not exists in JDK 17
- sdk install java 8.0.265-open
- sdk use java 8.0.265-open
# Installing the necessary Android SDK packages (accepting licenses, NDK, CMake)
- yes | sdkmanager --licenses
- yes | sdkmanager --update
- yes | sdkmanager --uninstall "ndk-bundle"
- yes | sdkmanager --install "ndk;26.3.11579264"
- yes | sdkmanager --install "cmake;3.22.1"
# Install JDK 17 and using it for the rest of the build
- sdk install java 17.0.3-tem
- sdk use java 17.0.3-tem
install:
- echo "Running a custom install command"
- uname -a
- ls $ANDROID_HOME/ndk/26.3.11579264/toolchains/llvm/prebuilt/*/bin/*
- cd ./crates/core/liveview-native-core-jetpack/
- source "$HOME/.cargo/env"
- ./gradlew buildDebugStaticLib
- ls ../../../target/debug/*
- ./gradlew build assembleRelease publishToMavenLocal -x test
env:
# These environment variables are used by the Rust/Gradle plugin
RUST_ANDROID_GRADLE_RUSTC_COMMAND: "/home/jitpack/.cargo/bin/rustc"
RUST_ANDROID_GRADLE_CARGO_COMMAND: "/home/jitpack/.cargo/bin/cargo"
RUST_ANDROID_GRADLE_RUSTUP_CHANNEL: "nightly"
RANLIB: "/opt/android-sdk-linux/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib"