Update native to 0.9.33-5 (#280) #309
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Maven Build and Deployment | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| name: Latest Java LTS Build and Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Java and Maven | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 25 | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn -B verify -DgcRecordWrites=1000 | |
| - name: Upload code coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} | |
| compatibility-checks: | |
| name: Java ${{ matrix.java }} on ${{ matrix.os }} Compatibility | |
| needs: [build] | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| java: [8, 11, 17, 21, 25] | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Java and Maven | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: ${{ matrix.java }} | |
| cache: maven | |
| - name: Execute verifier | |
| run: mvn -B test -Dtest=VerifierTest -DverificationSeconds=10 | |
| - name: Upload Surefire reports on test failure | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: surefire-test-log | |
| path: target/surefire-reports | |
| deploy: | |
| name: Deploy to Central Portal | |
| needs: [build, compatibility-checks] | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Java and Maven | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| # Java version 8 required due to https://github.com/lmdbjava/lmdbjava/issues/116 | |
| java-version: 8 | |
| cache: maven | |
| server-id: central | |
| server-username: MAVEN_CENTRAL_USERNAME | |
| server-password: MAVEN_CENTRAL_PASSWORD | |
| gpg-private-key: ${{ secrets.gpg_private_key }} | |
| gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
| - name: Publish Maven package | |
| run: mvn -B -Pcentral-deploy deploy -DskipTests | |
| env: | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }} | |
| MAVEN_CENTRAL_USERNAME: ${{ secrets.central_username }} | |
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.central_password }} | |
| - name: Debug settings.xml | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: settings.xml | |
| path: ~/.m2/settings.xml |