From 80ed9cf70a31e6e5bbf6eb6c960331b4d67b0dd1 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Fri, 1 Nov 2024 08:39:47 -0400 Subject: [PATCH] update --- .github/workflows/allversions.yml | 26 ++++++++++++++++++++ build.gradle | 3 ++- pom.xml | 7 +++++- src/main/java/org/roaringbitmap/App.java | 4 +++ src/test/java/org/roaringbitmap/AppTest.java | 2 +- 5 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/allversions.yml diff --git a/.github/workflows/allversions.yml b/.github/workflows/allversions.yml new file mode 100644 index 0000000..8162e06 --- /dev/null +++ b/.github/workflows/allversions.yml @@ -0,0 +1,26 @@ +name: 11, 17, 21 CI + +on: [push,pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDKs 11, 17, 21 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: | + 11 + 17 + 21 + - name: Build with Gradle + run: ./gradlew assemble + - name: Test with Java 11 + run: ./gradlew test -PtestOnJava=11 --stacktrace + - name: Test with Java 17 + run: ./gradlew test -PtestOnJava=17 --stacktrace + - name: Test with Java 21 + run: ./gradlew test -PtestOnJava=21 --stacktrace \ No newline at end of file diff --git a/build.gradle b/build.gradle index bb5a699..ff88f12 100644 --- a/build.gradle +++ b/build.gradle @@ -13,6 +13,7 @@ repositories { } dependencies { - implementation 'com.github.RoaringBitmap.RoaringBitmap:roaringbitmap:1.3.15' + implementation 'com.github.RoaringBitmap.RoaringBitmap:roaringbitmap:1.3.16' + implementation 'com.github.RoaringBitmap.RoaringBitmap:bsi:1.3.16' testImplementation 'junit:junit:3.8.1' } diff --git a/pom.xml b/pom.xml index 66cc4cf..382645f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,12 @@ com.github.RoaringBitmap.RoaringBitmap roaringbitmap - 1.3.15 + 1.3.16 + + + com.github.RoaringBitmap.RoaringBitmap + bsi + 1.3.16 diff --git a/src/main/java/org/roaringbitmap/App.java b/src/main/java/org/roaringbitmap/App.java index eedcf36..6df7907 100644 --- a/src/main/java/org/roaringbitmap/App.java +++ b/src/main/java/org/roaringbitmap/App.java @@ -5,8 +5,12 @@ * */ import org.roaringbitmap.RoaringBitmap; +import org.roaringbitmap.bsi.RoaringBitmapSliceIndex; public class App { + public void setup() { + RoaringBitmapSliceIndex bsi = new RoaringBitmapSliceIndex(1, 99); + } public static void main(String[] args) { RoaringBitmap rr = RoaringBitmap.bitmapOf(1,2,3,1000); RoaringBitmap rr2 = new RoaringBitmap(); diff --git a/src/test/java/org/roaringbitmap/AppTest.java b/src/test/java/org/roaringbitmap/AppTest.java index 5b3ce1c..b8b6ead 100644 --- a/src/test/java/org/roaringbitmap/AppTest.java +++ b/src/test/java/org/roaringbitmap/AppTest.java @@ -35,6 +35,6 @@ public static Test suite() public void testApp() { RoaringBitmap rr = RoaringBitmap.bitmapOf(1,2,3,1000); - assertTrue( rr.contains(1) ); + assertTrue( rr.contains(3) ); } }