Compare commits
7 Commits
367a0fa13a
...
59599bc6e8
Author | SHA1 | Date |
---|---|---|
renovate[bot] | 59599bc6e8 | |
renovate[bot] | 6f1f4f7357 | |
Kavin | 16c1e705db | |
Kavin | b594d71860 | |
Kavin | 8af02b0b70 | |
Kavin | f2b86d2dde | |
Kavin | 1423005cd1 |
|
@ -0,0 +1,30 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ 21 ]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: |
|
||||
reqwest-jni
|
||||
- run: cargo install cross
|
||||
- name: set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
distribution: zulu
|
||||
cache: "gradle"
|
||||
- name: Run Build
|
||||
run: ./gradlew shadowJar
|
|
@ -22,8 +22,8 @@ jobs:
|
|||
- name: set up JDK
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
distribution: zulu
|
||||
check-latest: true
|
||||
cache: "gradle"
|
||||
- name: Save Private Key
|
||||
|
|
14
build.gradle
14
build.gradle
|
@ -3,7 +3,7 @@ plugins {
|
|||
id "maven-publish"
|
||||
id "signing"
|
||||
id "fr.stardustenterprises.rust.importer" version "3.2.5"
|
||||
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -17,14 +17,14 @@ dependencies {
|
|||
// javac -h
|
||||
tasks.register('generateJniHeaders', JavaCompile) {
|
||||
classpath = sourceSets.main.compileClasspath
|
||||
destinationDir file("${buildDir}/generated/jni")
|
||||
destinationDir file("${layout.buildDirectory}/generated/jni")
|
||||
source = sourceSets.main.java
|
||||
options.compilerArgs += [
|
||||
'-h', file("${buildDir}/generated/jni"),
|
||||
'-d', file("${buildDir}/generated/jni-classes"),
|
||||
'-h', file("${layout.buildDirectory}/generated/jni"),
|
||||
'-d', file("${layout.buildDirectory}/generated/jni-classes"),
|
||||
]
|
||||
doLast {
|
||||
delete file("${buildDir}/generated/jni-classes")
|
||||
delete file("${layout.buildDirectory}/generated/jni-classes")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,8 @@ rustImport {
|
|||
java {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
signing {
|
||||
|
@ -44,8 +46,6 @@ signing {
|
|||
|
||||
group = 'rocks.kavin'
|
||||
version = '1.0.13'
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://downloads.gradle.org/distributions/gradle-7.6-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
networkTimeout=10000
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -13,6 +13,5 @@
|
|||
"automerge": true,
|
||||
"platformAutomerge": true
|
||||
}
|
||||
],
|
||||
"enabledManagers": ["cargo", "github-actions"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue