This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
name: Java Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: android
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build with Gradle
|
||||
run: |
|
||||
java -version
|
||||
gradle --version
|
||||
gradle build --no-daemon
|
||||
echo "构建成功!"
|
||||
|
||||
- name: Upload JAR
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hello-world
|
||||
path: build/libs/*.jar
|
||||
Reference in New Issue
Block a user