Skip to content

Commit bf2656d

Browse files
committed
use gradle instead of gradlew and disable daemon in actions
1 parent 9eff9be commit bf2656d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
uses: gradle/actions/setup-gradle@v4
7070

7171
- name: Gradle Check
72-
run: ./gradlew check
72+
run: gradle check --no-daemon
7373

7474
build:
7575
name: Build
@@ -102,7 +102,7 @@ jobs:
102102
output PR_NUMBER "${{ github.event.number }}"
103103
output HEAD_SHA "${{ github.sha }}"
104104
- name: Gradle Build
105-
run: ./gradlew build "-Dmod_artifact_suffix=-pr${{ github.event.number }}-$(git rev-parse --short ${{ github.sha }})"
105+
run: gradle build --no-daemon "-Dmod_artifact_suffix=-pr${{ github.event.number }}-$(git rev-parse --short ${{ github.sha }})"
106106
- name: Upload Build Artifacts
107107
id: artifact
108108
uses: actions/upload-artifact@v4

.github/workflows/tag-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: gradle/actions/setup-gradle@v4
4242

4343
- name: Gradle Check
44-
run: ./gradlew check
44+
run: gradle check --no-daemon
4545

4646
build:
4747
name: Build
@@ -58,7 +58,7 @@ jobs:
5858
uses: gradle/actions/setup-gradle@v4
5959

6060
- name: Gradle Build
61-
run: ./gradlew build
61+
run: gradle build --no-daemon
6262
- name: Upload Build Artifacts
6363
id: artifact
6464
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)