Skip to content

Commit

Permalink
Update snapshot build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Apr 24, 2024
1 parent 63fa456 commit 182998e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
include:
- os: ubuntu-latest
EXTRA_GRADLE_ARGS: :test:graalvm:nativeTest apiCheck
- os: macos-latest
env:
# macos-latest is now macos-14 and has less than half as much memory available as other runners
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx6g -Dfile.encoding=UTF-8" -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.project.kotlin.incremental.multiplatform=false -Dorg.gradle.project.kotlin.native.disableCompilerDaemon=true
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -62,17 +58,15 @@ jobs:
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'ajalt/mordant' }}
steps:
- uses: actions/checkout@v4
- name: Fetch git tags
run: git fetch origin +refs/tags/*:refs/tags/*
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
java-version: 21
- name: Deploy to sonatype
uses: gradle/gradle-build-action@v2
with:
# disable configuration cache due to https://github.com/gradle/gradle/issues/22779
arguments: publishToMavenCentral -PinferVersion=true --no-configuration-cache
arguments: publishToMavenCentral -PsnapshotVersion=true --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: ./gradlew publishToMavenCentral
- run: ./gradlew publishToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }}
Expand Down

0 comments on commit 182998e

Please sign in to comment.