From 9b3fd4b06477039579d99631046978384e874eb6 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 23 Mar 2023 12:54:57 +0530 Subject: fix(ci): make AGP version handling automatic --- .github/workflows/shadow_job.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/shadow_job.yml b/.github/workflows/shadow_job.yml index 1f22c77b..aa261b6a 100644 --- a/.github/workflows/shadow_job.yml +++ b/.github/workflows/shadow_job.yml @@ -8,14 +8,22 @@ env: name: Shadow job jobs: + provide-agp-version-matrix: + runs-on: ubuntu-latest + outputs: + agp-versions: ${{ steps.build-agp-matrix.outputs.agp-versions }} + steps: + - id: agp-version-finder + uses: usefulness/agp-version-finder-action@v1 + - id: build-agp-matrix + run: echo 'agp-versions=["${{ steps.agp-version-finder.outputs.latest-stable }}", "${{ steps.agp-version-finder.outputs.latest-beta }}","${{ steps.agp-version-finder.outputs.latest-alpha }}"]' >> $GITHUB_OUTPUT + shadow-job: + needs: [provide-agp-versions] strategy: fail-fast: false matrix: - agp-version: - - 7.4.2 - - 8.0.0-beta03 - - 8.1.0-alpha07 + agp-version: ${{ fromJSON(needs.provide-agp-version-matrix.outputs.agp-versions) }} gradle-version: - wrapper - release-nightly @@ -23,6 +31,7 @@ jobs: java-version: - 18 runs-on: ubuntu-latest + name: Run Gradle-${{ matrix.gradle-version }}, AGP-${{ matrix.agp-version }}, Java-${{ matrix.java-version }} steps: - name: Checkout repository uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 -- cgit v1.2.3