Skip to content

Commit

Permalink
Merge ee968cf into 9b794df
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Dec 21, 2022
2 parents 9b794df + ee968cf commit 2233c79
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/agp-matrix.yml
@@ -0,0 +1,36 @@
name: AGP Matrix Sample Release

on:
push:
branches:
- main
- release/**
pull_request:

jobs:
agp-matrix-sample-release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
agp: ['7.3.0','7.4.0-rc01','8.0.0-alpha09']

name: AGP Matrix Sample Release - AGP ${{ matrix.agp }}
env:
VERSION_AGP: ${{ matrix.agp }}

steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Java Version
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'

- name: Build the Release variant
uses: gradle/gradle-build-action@v2
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
arguments: sentry-samples:sentry-samples-android:assembleRelease
3 changes: 2 additions & 1 deletion buildSrc/src/main/java/Config.kt
@@ -1,6 +1,7 @@
import java.math.BigDecimal

object Config {
val AGP = System.getenv("VERSION_AGP") ?: "7.3.0"
val kotlinVersion = "1.6.10"
val kotlinStdLib = "stdlib-jdk8"

Expand All @@ -11,7 +12,7 @@ object Config {
val composeVersion = "1.1.1"

object BuildPlugins {
val androidGradle = "com.android.tools.build:gradle:7.3.0"
val androidGradle = "com.android.tools.build:gradle:$AGP"
val kotlinGradlePlugin = "gradle-plugin"
val buildConfig = "com.github.gmazzo.buildconfig"
val buildConfigVersion = "3.0.3"
Expand Down

0 comments on commit 2233c79

Please sign in to comment.