Skip to content

Commit

Permalink
fix: set default for maven_publish (#185)
Browse files Browse the repository at this point in the history
* fix: set default for maven_publish

* fix: setup gradle to version 8.12.1

instead of relying on the runner to provide it. Revert back to use
macos-latest since now we should have gradle setup in the correct
version.
  • Loading branch information
diogomatsubara authored Jan 31, 2025
1 parent 4d82770 commit d2f2197
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15]
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -55,6 +55,8 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.12.1

- name: Gradle Test
run: gradle jvmTest --info
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
rustup target add aarch64-linux-android
rustup target add x86_64-linux-android
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.12.1

- name: Gradle Wrapper
run: |
gradle wrapper
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-jvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ jobs:
distribution: temurin
java-version: 11

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.12.1

- name: Gradle Wrapper
run: |
gradle wrapper
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ on:
type: boolean
description: Publish the package to Maven Central
required: false
default: true

jobs:
tag:
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
with:
snapshot: ${{ !(inputs.live-run || false) }}
branch: ${{ needs.tag.outputs.branch }}
maven_publish: ${{ !(inputs.maven_publish || true )}}
maven_publish: ${{ inputs.maven_publish }}
permissions:
contents: read
packages: write
Expand All @@ -92,7 +93,7 @@ jobs:
with:
snapshot: ${{ !(inputs.live-run || false) }}
branch: ${{ needs.tag.outputs.branch }}
maven_publish: ${{ !(inputs.maven_publish || true )}}
maven_publish: ${{ inputs.maven_publish }}
permissions:
contents: read
packages: write
Expand Down

0 comments on commit d2f2197

Please sign in to comment.