From 4edf0ddbdcf3c248a441ec9444c462be1eba1079 Mon Sep 17 00:00:00 2001 From: !verity Date: Fri, 13 Mar 2026 18:31:54 +0100 Subject: [PATCH] Set up GitHub Actions CI workflow for builds and tests --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c9848f8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build and test + run: ./gradlew build --no-daemon --stacktrace + + # Optional: run on Windows as well to catch OS-specific issues + build-windows: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: gradle + + - name: Build and test + run: .\gradlew.bat build --no-daemon --stacktrace