From 04bf090e41ccde442df20ad0ecd5228dce752ff9 Mon Sep 17 00:00:00 2001 From: Florian Bezdeka Date: Wed, 31 Jul 2024 11:34:52 +0200 Subject: [PATCH] github: Add build workflow, build on every push First implementation, might need some fine tuning. Signed-off-by: Florian Bezdeka --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..a12cf40 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + +jobs: + gradle: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-version: 7.4 + + - name: Execute Gradle build + run: gradle build -Pversion=$(git describe --dirty --tags --always) + + - name: Upload build reports + uses: actions/upload-artifact@v3 + if: always() + with: + name: Intellij Plugin + path: build/libs