Archived
docs: update CI/CD and releasing docs for Maven build system
Updates documentation to reflect the actual Maven-based build: - pom.xml instead of gradle.properties for version - mvn commands instead of gradlew - Updated build workflow examples Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
767a941ac3
commit
92c586152b
2 files changed
+28
-26
No files matched your search
+20
-18
@@ -34,22 +34,22 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up GraalVM
|
||||
uses: graalvm/setup-graalvm@v1
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'graalvm-community'
|
||||
cache: 'gradle'
|
||||
distribution: 'temurin'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Run tests
|
||||
run: ./gradlew 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: build/reports/tests/
|
||||
path: target/surefire-reports/
|
||||
|
||||
build-native:
|
||||
needs: test
|
||||
@@ -57,20 +57,13 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
arch: x64
|
||||
artifact: barn-linux-x64
|
||||
- os: ubuntu-24.04-arm
|
||||
arch: arm64
|
||||
artifact: barn-linux-arm64
|
||||
- os: macos-latest
|
||||
arch: arm64
|
||||
artifact: barn-macos-arm64
|
||||
- os: macos-13
|
||||
arch: x64
|
||||
artifact: barn-macos-x64
|
||||
- os: windows-latest
|
||||
arch: x64
|
||||
artifact: barn-windows-x64.exe
|
||||
artifact: barn-windows-x64
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
@@ -81,16 +74,25 @@ jobs:
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'graalvm-community'
|
||||
cache: 'gradle'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Build native image
|
||||
run: ./gradlew nativeCompile
|
||||
- name: Build native image (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true
|
||||
mv target/barn target/${{ matrix.artifact }}
|
||||
|
||||
- name: Build native image (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
mvn package -Pnative -DskipTests -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true
|
||||
mv target/barn.exe target/${{ matrix.artifact }}.exe
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.artifact }}
|
||||
path: build/native/nativeCompile/barn*
|
||||
path: target/${{ matrix.artifact }}*
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user