bump the library version to 0.1.0 #92
Workflow file for this run
This file contains 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
--- | |
# GitHub Actions workflow for commits pushed to the jolt-jni repo - all branches | |
name: CI at GitHub | |
on: [push] | |
jobs: | |
Java11-Linux: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: actions/checkout@v4 | |
- uses: gradle/actions/wrapper-validation@v3 | |
- uses: mattsb42/not-grep@master | |
with: | |
config-file: .github/not-grep.toml | |
- run: ./gradlew -Pflavor=Sp build install --console=plain | |
- name: deploy native libraries to a GitHub release | |
if: github.ref == 'refs/tags' | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
dist/Linux64DebugSp_libjoltjni.so | |
dist/Linux64ReleaseSp_libjoltjni.so | |
Java11-MacOS: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: macOS-13 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew -Ptarget=MacOSX64 run build install --console=plain | |
- name: deploy native libraries to a GitHub release | |
if: github.ref == 'refs/tags' | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
dist/MacOSX64DebugDp_libjoltjni.dylib | |
dist/MacOSX64DebugSp_libjoltjni.dylib | |
dist/MacOSX64ReleaseDp_libjoltjni.dylib | |
dist/MacOSX64ReleaseSp_libjoltjni.dylib | |
Java17-MacOS: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: macOS-14 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew -Ptarget=MacOSX_ARM64 build install --console=plain | |
- name: deploy native libraries to a GitHub release | |
if: github.ref == 'refs/tags' | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
dist/MacOSX64_ARM64DebugDp_libjoltjni.dylib | |
dist/MacOSX64_ARM64DebugSp_libjoltjni.dylib | |
dist/MacOSX64_ARM64ReleaseDp_libjoltjni.dylib | |
dist/MacOSX64_ARM64ReleaseSp_libjoltjni.dylib | |
Java21-Windows: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew build install --console=plain | |
shell: bash | |
- name: deploy native libraries to a GitHub release | |
if: github.ref == 'refs/tags' | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
dist/Windows64DebugDp_joltjni.dll | |
dist/Windows64DebugSp_joltjni.dll | |
dist/Windows64ReleaseDp_joltjni.dll | |
dist/Windows64ReleaseSp_joltjni.dll | |
Java22-Linux: | |
if: contains(toJson(github.event.commits), '[ci skip] ') == false | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 22 | |
- uses: actions/checkout@v4 | |
- run: ./gradlew -Pflavor=Dp build install --console=plain | |
- name: stage artifacts to Sonatype OSSRH | |
if: github.ref == 'refs/tags' | |
run: ./gradlew -Pflavor=Sp release --console=plain \ | |
-PossrhPassword=${{ secrets.OSSRH_PASSWORD }} \ | |
-PossrhUsername=${{ secrets.OSSRH_USERNAME }} \ | |
-PsigningKey='${{ secrets.SIGNING_KEY }}' \ | |
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' | |
- name: deploy artifacts and native libraries to a GitHub release | |
if: github.ref == 'refs/tags' | |
uses: marvinpinto/[email protected] | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
files: | | |
dist/joltjni-* | |
dist/Linux64DebugSp_libjoltjni.so | |
dist/Linux64ReleaseSp_libjoltjni.so |