Skip to content

Commit 09229f4

Browse files
committed
workflow issue pt3
1 parent cdd1842 commit 09229f4

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/build-release.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- published
1010

11+
concurrency:
12+
group: gradle-build
13+
cancel-in-progress: true
14+
1115
jobs:
1216
build:
1317
runs-on: ubuntu-latest
@@ -20,13 +24,22 @@ jobs:
2024
distribution: temurin
2125
java-version: 17
2226

27+
- name: Remove Gradle cache locks
28+
run: rm -f ~/.gradle/caches/*/*.lock
29+
30+
- name: Disable Gradle Daemon
31+
run: echo "org.gradle.daemon=false" >> gradle.properties
32+
33+
- name: Clear Gradle Cache
34+
run: rm -rf ~/.gradle/caches
35+
2336
- name: Setup Gradle
2437
uses: gradle/actions/setup-gradle@v3
2538
with:
2639
cache-read-only: false
2740

2841
- name: Run build with Gradle Wrapper
29-
run: ./gradlew build -Dbuild.release=true
42+
run: ./gradlew build -Dbuild.release=true --no-parallel --no-daemon
3043

3144
- name: Extract versions from tag name
3245
id: versions
@@ -62,7 +75,7 @@ jobs:
6275
architectury-api(required)
6376
cryonicconfig(required)
6477
65-
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
78+
version-resolver: latest
6679

6780
- name: Upload neoforge artifacts
6881
uses: Kir-Antipov/mc-publish@v3.3
@@ -90,7 +103,7 @@ jobs:
90103
architectury-api(required)
91104
cryonicconfig(required)
92105
93-
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
106+
version-resolver: latest
94107

95108
- name: Upload forge artifacts
96109
uses: Kir-Antipov/mc-publish@v3.3
@@ -118,4 +131,4 @@ jobs:
118131
architectury-api(required)
119132
cryonicconfig(required)
120133
121-
version-resolver: latest # Defaults to selecting the latest compatible version of Minecraft, using the tag from the fabric.mod.json
134+
version-resolver: latest

common/src/main/java/com/periut/chisel/Chisel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.util.ArrayList;
2424

2525
public class Chisel {
26-
private static final String WHY = "githubactionsmoment";
2726
public static final String MOD_ID = "chisel";
2827
public static final Logger LOGGER = LogManager.getFormatterLogger("Chisel");
2928

0 commit comments

Comments
 (0)