forked from Cookies_Public/AquaDX
添加 .github/workflows/build.yml
This commit is contained in:
parent
9c91d730b4
commit
3844622f22
49
.github/workflows/build.yml
vendored
Normal file
49
.github/workflows/build.yml
vendored
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user