From ea25acec099de995850f3bb737d27700407df313 Mon Sep 17 00:00:00 2001 From: Georgii Ippolitov Date: Sun, 4 Aug 2024 15:25:54 +0300 Subject: [PATCH] Update workflows --- .github/workflows/build.yml | 21 ++++++------ .github/workflows/dependency-submission.yml | 36 +++++++++++++++++++++ .github/workflows/release.yml | 19 ++++++----- 3 files changed, 59 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/dependency-submission.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9d1847e..988e874 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: "Build" +name: 'Build' on: push: @@ -15,24 +15,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - lfs: 'true' + lfs: true - name: Set up JDK uses: actions/setup-java@v4 with: distribution: 'corretto' - java-version: '17' + java-version: 17 - name: Set up XCode uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable - - name: Binary Compatibility Validation - env: - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - run: ./gradlew apiCheck + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Assemble env: @@ -44,4 +41,10 @@ jobs: env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - run: ./gradlew test \ No newline at end of file + run: ./gradlew test + + - name: Binary Compatibility Validation + env: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + run: ./gradlew apiCheck \ No newline at end of file diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml new file mode 100644 index 0000000..db6e125 --- /dev/null +++ b/.github/workflows/dependency-submission.yml @@ -0,0 +1,36 @@ +name: 'Dependency submission' + +on: + push: + branches: + - 'master' + +permissions: + contents: write + +jobs: + dependency-submission: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + lfs: true + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'corretto' + java-version: 17 + + - name: Set up XCode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v4 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9665365..26cc5a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: "Release" +name: 'Release' on: push: @@ -13,24 +13,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - lfs: 'true' + lfs: true - name: Set up JDK uses: actions/setup-java@v4 with: distribution: 'corretto' - java-version: '17' + java-version: 17 - name: Set up XCode uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable - - name: Binary Compatibility Validation - env: - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - run: ./gradlew apiCheck + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Assemble env: @@ -44,6 +41,12 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} run: ./gradlew test + - name: Binary Compatibility Validation + env: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + run: ./gradlew apiCheck + - name: Publish env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }}