Skip to content

Commit 82500dc

Browse files
ci: update gradle action to v4 to restore caching (#79)
* ci: update gradle action to v4 to restore caching * ci: update runner
1 parent c2d896e commit 82500dc

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/validate-workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
validate:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212

1313
steps:
1414
- name: Checkout local repository

gradle/action.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ inputs:
1212
description: 'max heap to allocate to gradle'
1313
required: true
1414
default: '6g'
15+
gradle-executable:
16+
description: 'gradle wrapper executable'
17+
required: true
18+
default: './gradlew'
1519
runs:
1620
using: "composite"
17-
steps:
18-
- uses: gradle/gradle-build-action@v2
19-
with:
20-
arguments: |
21+
steps:
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v4
24+
- name: Execute Gradle Command
25+
shell: bash
26+
run: |
27+
${{ inputs.gradle-executable }}
2128
--info
2229
--max-workers=${{ inputs.max-workers }}
2330
-Dorg.gradle.jvmargs=-Xmx${{ inputs.max-heap }}

0 commit comments

Comments
 (0)