From 167292165a867433a4d97f8b7bee94eb17920b6a Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Wed, 21 Jan 2026 23:16:42 +0000 Subject: [PATCH] ci: simplify build workflow Build workflow now: - Triggers on PRs and pushes to main - Runs on single OS (ubuntu-latest) - Just verifies code compiles and tests pass Release workflow (on tags) still builds for all platforms. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/build.yml | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c02a3a3..41e6831 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,13 @@ name: Build on: + push: + branches: [main] pull_request: branches: [main] jobs: - test: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -17,35 +19,5 @@ jobs: distribution: 'temurin' cache: 'maven' - - name: Run tests + - name: Build and test run: mvn verify -Dspotbugs.skip=true -Dpmd.skip=true - - - name: Upload test results - uses: actions/upload-artifact@v4 - if: always() - with: - name: test-results - path: target/surefire-reports/ - - build-jar: - needs: test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - cache: 'maven' - - - name: Build JAR - run: mvn package -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true - - - name: Upload JAR - uses: actions/upload-artifact@v4 - with: - name: barn-jar - path: target/barn-*.jar - retention-days: 7