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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up GraalVM
|
- name: Set up JDK 21
|
||||||
uses: graalvm/setup-graalvm@v1
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'graalvm-community'
|
distribution: 'temurin'
|
||||||
cache: 'gradle'
|
cache: 'maven'
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./gradlew test
|
run: mvn verify -Dspotbugs.skip=true -Dpmd.skip=true
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: build/reports/tests/
|
path: target/surefire-reports/
|
||||||
|
|
||||||
build-native:
|
build-native:
|
||||||
needs: test
|
needs: test
|
||||||
@@ -57,20 +57,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
arch: x64
|
|
||||||
artifact: barn-linux-x64
|
artifact: barn-linux-x64
|
||||||
- os: ubuntu-24.04-arm
|
|
||||||
arch: arm64
|
|
||||||
artifact: barn-linux-arm64
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
arch: arm64
|
|
||||||
artifact: barn-macos-arm64
|
artifact: barn-macos-arm64
|
||||||
- os: macos-13
|
- os: macos-13
|
||||||
arch: x64
|
|
||||||
artifact: barn-macos-x64
|
artifact: barn-macos-x64
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
arch: x64
|
artifact: barn-windows-x64
|
||||||
artifact: barn-windows-x64.exe
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@@ -81,16 +74,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
distribution: 'graalvm-community'
|
distribution: 'graalvm-community'
|
||||||
cache: 'gradle'
|
cache: 'maven'
|
||||||
|
|
||||||
- name: Build native image
|
- name: Build native image (Unix)
|
||||||
run: ./gradlew nativeCompile
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.artifact }}
|
name: ${{ matrix.artifact }}
|
||||||
path: build/native/nativeCompile/barn*
|
path: target/${{ matrix.artifact }}*
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
+8
-8
@@ -30,10 +30,10 @@ For pre-release testing:
|
|||||||
|
|
||||||
## Version Location
|
## Version Location
|
||||||
|
|
||||||
The version is defined in `gradle.properties`:
|
The version is defined in `pom.xml`:
|
||||||
|
|
||||||
```properties
|
```xml
|
||||||
version=1.2.3
|
<version>1.2.3</version>
|
||||||
```
|
```
|
||||||
|
|
||||||
This version is embedded in the binary and available via `barn --version`.
|
This version is embedded in the binary and available via `barn --version`.
|
||||||
@@ -102,15 +102,15 @@ Ensure all changes are merged to `main` and tests pass:
|
|||||||
```bash
|
```bash
|
||||||
git checkout main
|
git checkout main
|
||||||
git pull origin main
|
git pull origin main
|
||||||
./gradlew clean test
|
mvn clean verify
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Update Version
|
### 2. Update Version
|
||||||
|
|
||||||
Edit `gradle.properties`:
|
Edit the `<version>` tag in `pom.xml`:
|
||||||
|
|
||||||
```properties
|
```xml
|
||||||
version=1.2.3
|
<version>1.2.3</version>
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Update Changelog
|
### 3. Update Changelog
|
||||||
@@ -131,7 +131,7 @@ Move items from `[Unreleased]` to the new version section:
|
|||||||
### 4. Commit the Release
|
### 4. Commit the Release
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add gradle.properties CHANGELOG.md
|
git add pom.xml CHANGELOG.md
|
||||||
git commit -m "Release v1.2.3"
|
git commit -m "Release v1.2.3"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user