From 074a90d365d593fbae6e1ccefd4f6822f6de2d86 Mon Sep 17 00:00:00 2001 From: halibobo1205 Date: Thu, 1 Sep 2022 13:40:49 +0800 Subject: [PATCH] release:1.23.2 1. add workflows for mvn 2. upgrade snappy --- .github/workflows/maven.yml | 26 +++++++++++++++++++ leveldb/pom.xml | 2 +- .../org/iq80/leveldb/impl/DbImplTest.java | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..dbf1d0a2 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,26 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn clean package -P release diff --git a/leveldb/pom.xml b/leveldb/pom.xml index 0f29aff2..a777160e 100644 --- a/leveldb/pom.xml +++ b/leveldb/pom.xml @@ -27,7 +27,7 @@ org.xerial.snappy snappy-java - 1.1.2.6 + 1.1.8.4 true diff --git a/leveldb/src/test/java/org/iq80/leveldb/impl/DbImplTest.java b/leveldb/src/test/java/org/iq80/leveldb/impl/DbImplTest.java index ac9b0209..a2557e4d 100644 --- a/leveldb/src/test/java/org/iq80/leveldb/impl/DbImplTest.java +++ b/leveldb/src/test/java/org/iq80/leveldb/impl/DbImplTest.java @@ -135,7 +135,7 @@ public void testEmptyBatch() assertEquals(12, batch.approximateSize()); batch.append(source); batch.append(source); - assertEquals(source.approximateSize() * 2 -12, batch.approximateSize()); + assertEquals(source.approximateSize() * 2 - 12, batch.approximateSize()); batch.clear(); assertEquals(12, batch.approximateSize()); db.write(batch);