Skip to content

Commit f4dec0b

Browse files
committed
Increase Gradle daemon memory in actions
1 parent 40b186d commit f4dec0b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/publish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
mkdir -p ~/.gradle/
3333
echo "GRADLE_USER_HOME=$HOME/.gradle" >> "$GITHUB_ENV"
3434
echo "mcdev.deploy.token=${JETBRAINS_TOKEN}" > ~/.gradle/gradle.properties
35+
- shell: bash
36+
run: |
37+
mkdir -p ~/.gradle/
38+
echo -e '\norg.gradle.jvmargs=-Xmx4G\n' >> ~/.gradle/gradle.properties
3539
- name: Publish plugin
3640
run: ./gradlew clean :publishPlugin --stacktrace
3741
- name: Get tag name

.github/workflows/test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ jobs:
2323
with:
2424
distribution: 'temurin'
2525
java-version: 17
26-
- uses: actions-ecosystem/action-regex-match@v2
26+
- uses: actions-ecosystem/action-regex-match@d50fd2e7a37d0e617aea3d7ada663bd56862b9cc
2727
id: branch-match
2828
with:
2929
text: ${{ github.ref }}
30-
regex: '^refs/heads/\d{4}\.\d$'
30+
regex: '^refs\/heads\/\d{4}\.\d$'
3131
- name: Setup Gradle
3232
uses: gradle/actions/setup-gradle@v4
3333
with:
3434
cache-read-only: ${{ github.ref != 'refs/heads/dev' && steps.branch-match.outputs.match != '' }}
35+
- shell: bash
36+
run: |
37+
mkdir -p ~/.gradle/
38+
echo -e '\norg.gradle.jvmargs=-Xmx4G\n' >> ~/.gradle/gradle.properties
3539
- name: Build
3640
run: ./gradlew build --stacktrace

0 commit comments

Comments
 (0)