diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..60ffbc13 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,49 @@ +name: Gradle Build + +on: + pull_request: + branches: [ v1-dev ] + workflow_dispatch: + +jobs: + build: + runs-on: macos-arm64 + env: + GIT_SSL_NO_VERIFY: true + + steps: + - name: Force Git to use HTTP/1.1 (Experimental) + run: | + git config --global http.version HTTP/1.1 + git config --global http.sslVerify false + git config --global http.sslVerify false + git config --global https.sslVerify false + git config --global http.proxy 'http://127.0.0.1:7890' + git config --global https.proxy 'http://127.0.0.1:7890' + export NODE_TLS_REJECT_UNAUTHORIZED='0' + + - name: Disable SSL verification (Temporary Fix) + run: git config --global http.sslVerify false + + - name: Checkout repository + uses: https://gitee.com/github-actions/checkout@v4 + + + - name: Set up JDK + uses: https://gitea.com/actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + + - name: Build with Gradle + run: | + mkdir data + bash ./src/main/resources/meta/update.sh + chmod +x gradlew + ./gradlew build + + - name: Upload artifact + uses: https://gitee.com/actions-mirror/upload-artifact@v3 + with: + name: AquaDX-1.0.0.jar + path: build/libs \ No newline at end of file