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 }}