Skip to content

Commit 0ab324d

Browse files
committed
try fixing build.yml #3
1 parent b7e8cd3 commit 0ab324d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ jobs:
4848
for attempt in 1 2 3; do
4949
echo "Attempt $attempt for MC $VERSION"
5050
51-
if ./gradlew "Set active project to $VERSION" --no-daemon && \
52-
./gradlew build --no-daemon; then
51+
# Use --no-configuration-cache to avoid compatibility issues
52+
if ./gradlew "Set active project to $VERSION" --no-daemon --no-configuration-cache && \
53+
./gradlew build --no-daemon --no-configuration-cache; then
5354
cp build/libs/*.jar all-builds/ 2>/dev/null || true
54-
./gradlew clean --no-daemon
55+
./gradlew clean --no-daemon --no-configuration-cache
5556
BUILD_SUCCESS=true
5657
SUCCESS_COUNT=$((SUCCESS_COUNT + 1))
5758
echo "✓ Successfully built MC $VERSION"
@@ -61,7 +62,7 @@ jobs:
6162
if [ $attempt -lt 3 ]; then
6263
echo "Build failed, retrying in 10 seconds..."
6364
sleep 10
64-
./gradlew clean --no-daemon || true
65+
./gradlew clean --no-daemon --no-configuration-cache || true
6566
fi
6667
done
6768
@@ -74,7 +75,7 @@ jobs:
7475
done
7576
7677
# Reset to default version
77-
./gradlew "Reset active project" --no-daemon || true
78+
./gradlew "Reset active project" --no-daemon --no-configuration-cache || true
7879
7980
echo "========================================="
8081
echo "Build Summary"

0 commit comments

Comments
 (0)