From c43b21a4dd3b65cc1ad4e5035b3c9cf7a1160165 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:44:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20Add=20build=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..cc200b0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build Project + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + build: + name: Build Project + runs-on: ubuntu-latest + steps: + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: liberica + - name: Check out + uses: actions/checkout@v4 + - name: Validate gradle wrapper + uses: gradle/actions/wrapper-validation@v3 + - name: Set up gradle + uses: gradle/actions/setup-gradle@v3 + - name: Build + run: ./gradlew clean build + - name: Upload build reports + uses: actions/upload-artifact@v4 + if: failure() + with: + name: build-reports + path: '**/build/reports/' \ No newline at end of file