From d231fe6006de16156e9f9ebfa4965d7a648bfab2 Mon Sep 17 00:00:00 2001 From: Blue-Flag-666 <64064866+Blue-Flag-666@users.noreply.github.com> Date: Sun, 15 Dec 2024 01:11:47 +0800 Subject: [PATCH] Create Build.yml --- .github/workflows/Build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/Build.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 000000000000..677cf5910ae7 --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'oracle' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Grant execute permission to Gradle wrapper + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew clean build