Published version 0.1.0 to maven central. #33
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
name: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
# runs-on: ubuntu-latest | |
runs-on: macos-14 | |
environment: Maven Central | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: corretto | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Setup Rust & cargo | |
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu | |
- name: Cache rust build | |
uses: actions/cache@v4 | |
with: | |
path: rust_lib/target | |
- name: Gradle Build | |
run: ./gradlew build | |
# - name: Gradle Publish | |
# run: ./gradlew publish | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
# MAVEN_SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }} | |
# MAVEN_SIGNING_PASSWORD: ${{ secrets.MAVEN_SIGNING_PASSWORD }} |