From 4a1433f1013886bdc97533f81c8d615e28d169a3 Mon Sep 17 00:00:00 2001 From: Cvr Date: Fri, 17 May 2024 23:54:16 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6d345a..0c8c668 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,20 +14,26 @@ jobs: uses: actions/checkout@v2 with: submodules: recursive + - name: Java setup uses: actions/setup-java@v2 with: - distribution: "adopt" + distribution: 'adopt' java-version: 8 - cache: "gradle" - - name: Make gradlew executable - run: chmod +x ./gradlew - + cache: gradle + + - name: Increase Gradle timeout + run: echo "systemProp.http.socketTimeout=60000" >> ~/.gradle/gradle.properties + - name: Build - run: ./gradlew clean build - + run: | + chmod +x ./gradlew + ./gradlew setupCiWorkspace --no-daemon + ./gradlew clean --no-daemon + ./gradlew build --no-daemon --refresh-dependencies + - name: Upload build artifacts uses: actions/upload-artifact@v2 with: name: Haru - path: build/libs/ + path: build/libs/Haru.jar