From cc7f54c9dce71ab98c93a457aefb686a7709997a Mon Sep 17 00:00:00 2001 From: 339 <393893729@qq.com> Date: Mon, 27 May 2024 12:28:35 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000..e8064b2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Build Check + +on: + push: + branches: [ "master" ] + paths-ignore: [ ".github/**" ] + pull_request: + branches: [ "master" ] + paths-ignore: [ ".github/**" ] + workflow_dispatch: + +jobs: + Build: + runs-on: ubuntu-latest + permissions: read-all + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: "oracle" + java-version: 17 + cache: 'gradle' + + - name: Build with Gradle + run: ./gradlew assembleDebug --stacktrace