Archived
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
436d8ee840
commit
167292165a
1 file changed
+4
-32
@@ -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
|
||||
Reference in new issue
Block a user