From e46f038feede130b16652037b68cf729499b0ae5 Mon Sep 17 00:00:00 2001 From: Wzp-2008 Date: Sun, 12 Jan 2025 23:56:58 +0800 Subject: [PATCH] ci: try again to avoid to use wrapper --- .github/workflows/ci.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1dee859..fe2f666 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,13 +16,10 @@ jobs: with: java-version: ${{ matrix.java }} distribution: 'microsoft' - - name: make gradle wrapper executable - if: ${{ runner.os != 'Windows' }} - run: chmod +x ./gradlew - - name: setup proxy - run: echo "systemProp.http.proxyHost=192.168.5.6\\nsystemProp.http.proxyPort=7890\\nsystemProp.https.proxyHost=192.168.5.6\\nsystemProp.https.proxyPort=7890" >> gradle.properties + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: build - run: _JAVA_OPTIONS="-Dhttp.proxyHost=192.168.5.6 -Dhttp.proxyPort=7890 -Dhttps.proxyHost=192.168.5.6 -Dhttps.proxyPort=7890" ./gradlew clean bootJar --no-daemon + run: gradle clean bootJar --no-daemon - name: capture build artifacts uses: actions/upload-artifact@v3 with: