-
Notifications
You must be signed in to change notification settings - Fork 211
44 lines (43 loc) · 1.47 KB
/
call-configuration-change.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Check configuration change
on:
workflow_call:
jobs:
check_gradle_files_change:
name: "Check that gradle files changed"
runs-on: ubuntu-latest
outputs:
GRADLE_FILES_CHANGED: ${{ steps.gradle-related-changed.outputs.any_changed }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: 'recursive'
- name: Check that gradle files changed
id: gradle-related-changed
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
with:
files: |
**.gradle.kts
build-logic/**
gradle/**
gradle.properties
matrx_update_gradle:
name: "Build all variants"
runs-on: ubuntu-latest
needs: check_gradle_files_change
if: needs.check_gradle_files_change.outputs.GRADLE_FILES_CHANGED == 'true'
strategy:
matrix:
target: [ "Release", "Debug", "Internal" ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: 'recursive'
- name: Set up JDK 1.17
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build release
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
arguments: assemble${{ matrix.target }} bundle${{ matrix.target }}