feat: Prepare for the first release on maven central. #1
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: Build | |
| on: | |
| push: | |
| pull_request: | |
| workflow_call: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'graalvm' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| cache-read-only: ${{ github.event_name != 'push' }} | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Javadoc with Gradle | |
| run: ./gradlew javadoc | |
| - name: Test with Gradle | |
| run: ./gradlew test | |
| - name: Native tests with Gradle | |
| run: ./gradlew nativeTest |