summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-23 12:54:57 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-23 12:56:37 +0530
commit9b3fd4b06477039579d99631046978384e874eb6 (patch)
tree0f64410dad7c4f92f06ca14fdf17d1098536a15f /.github
parente9e6b2426935beb7acedea3bf12c2a432f6919dc (diff)
fix(ci): make AGP version handling automatic
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/shadow_job.yml17
1 files changed, 13 insertions, 4 deletions
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