Skip to content

Commit 0c8ff74

Browse files
committed
Update build workflows
1 parent d8ea048 commit 0c8ff74

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/build-everything.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
description: 'Json File containing arbitrary strategy-matrix; MUST be inside repository ./github folder'
1818
required: true
1919
type: string
20+
override-cache:
21+
required: false
22+
default: false
23+
type: boolean
2024

2125
jobs:
2226
prepare-matrix:
@@ -34,3 +38,4 @@ jobs:
3438
module: ${{ matrix.module }}
3539
kotlin-version: ${{ inputs.kotlinVersion }}
3640
testballoon-version: ${{ inputs.testballoonVersion }}
41+
override-cache: ${{ inputs.override-cache }}

.github/workflows/build-matrix-entry.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
required: false
1818
default: ""
1919
type: string
20+
override-cache:
21+
required: false
22+
default: false
23+
type: boolean
2024

2125
jobs:
2226
build:
@@ -28,21 +32,10 @@ jobs:
2832
TESTBALLOON_VERSION_OVERRIDE: ${{ inputs.testballoon-version }}
2933

3034
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
with:
34-
submodules: recursive
35-
36-
- name: Setup Java
37-
uses: actions/setup-java@v3
38-
with:
39-
distribution: temurin
40-
java-version: "17"
41-
42-
- name: Setup Gradle # Gradle-native cache handling
43-
uses: gradle/actions/setup-gradle@v5
35+
- name: Common setup
36+
uses: a-sit-plus/internal-workflows/.github/actions/common-setup@feature/modularTests
4437
with:
45-
cache-read-only: true
38+
override-cache: ${{ inputs.override-cache }}
4639

4740
- name: Build jar
4841
run: ./gradlew assemble

0 commit comments

Comments
 (0)