Skip to content

[patch] libraries Gradle Libraries Update #860

[patch] libraries Gradle Libraries Update

[patch] libraries Gradle Libraries Update #860

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build-job:
name: "Build Linux"
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-linux
env:
GH_TOKEN: ${{ secrets.TESTMINTS_PAT }}
GITHUB_TOKEN: ${{ secrets.TESTMINTS_PAT }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
outputs:
version: ${{ env.TAGGER_VERSION }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Up Git User
run: |
git config user.name "github-actions[bot]"
git config user.email "6215634+robertfmurdock@users.noreply.github.com"
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '20'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Generate Version 🔢
run: ./gradlew calculateVersion -PexportToGithub=true --scan
- name: Build 🔨
run: ./gradlew assemble check -Pversion=${{ env.TAGGER_VERSION }} --scan --no-configuration-cache
- name: Release 🙏
run: ./gradlew release -Pversion=${{ env.TAGGER_VERSION }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} --scan --no-configuration-cache
- name: Update Contributions
uses: robertfmurdock/coupling-contribution-action@v2
with:
save-contribution: ${{ github.ref == 'refs/heads/master' }}
coupling-secret: ${{ secrets.COUPLING_API_PARTY_SECRET }}
party-id: 9df8b8ef-f10f-4b75-bde1-d691c148378c
contribution-file: build/digger/current.json
cycle-time-from-first-commit: true
- name: Collect Results
if: ${{ always() }}
run: ./gradlew collectResults
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-output
path: build/test-output/
build-job-mac:
name: "Build Mac"
runs-on: macos-latest
needs: build-job
concurrency:
group: ${{ github.ref }}-mac
cancel-in-progress: true
env:
TAGGER_VERSION: ${{needs.build-job.outputs.version}}
GH_TOKEN: ${{ secrets.TESTMINTS_PAT }}
GITHUB_TOKEN: ${{ secrets.TESTMINTS_PAT }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '20'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Release 🔨
run: ./gradlew release -Pversion=${{ env.TAGGER_VERSION }} -Prelease-target=mac --scan --no-configuration-cache -x :plugins:action-mint-plugin:publishPlugins -x :plugins:mint-logs-plugin:publishPlugins
- name: Collect Test Results
if: ${{ always() }}
run: ./gradlew collectResults
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-output
path: |
build/test-output/