Compare commits

..

7 Commits

Author SHA1 Message Date
renovate[bot] 59599bc6e8
Update Rust crate tokio to 1.37.0 2024-03-28 20:13:11 +00:00
renovate[bot] 6f1f4f7357 Update plugin com.github.johnrengelman.shadow to v8 2024-03-28 20:12:04 +00:00
Kavin 16c1e705db
Update workflow to properly build. 2024-03-28 20:09:59 +00:00
Kavin b594d71860
Update renovate config. 2024-03-28 20:06:58 +00:00
Kavin 8af02b0b70
Add CI workflow for testing builds. 2024-03-28 20:06:49 +00:00
Kavin f2b86d2dde
Update publish workflow to use java 21. 2024-03-28 20:05:36 +00:00
Kavin 1423005cd1
Update gradle wrapper to 8.7. 2024-03-28 20:04:04 +00:00
5 changed files with 42 additions and 13 deletions

30
.github/workflows/ci.yml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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

View File

@ -13,6 +13,5 @@
"automerge": true,
"platformAutomerge": true
}
],
"enabledManagers": ["cargo", "github-actions"]
}
]
}