This is an automated email from the ASF dual-hosted git repository.
shown pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 563cbd7943 [ci]: add mvnd support and update backend build (#3491)
563cbd7943 is described below
commit 563cbd79433f085eceb1cf4176f29be1707e657c
Author: Logic <[email protected]>
AuthorDate: Sat Jun 21 20:07:10 2025 +0800
[ci]: add mvnd support and update backend build (#3491)
---
.github/workflows/backend-build-test.yml | 2 +-
script/ci/github-actions/setup-deps/action.yml | 17 ++++++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/backend-build-test.yml
b/.github/workflows/backend-build-test.yml
index 50b1cadb2b..daf5678c92 100644
--- a/.github/workflows/backend-build-test.yml
+++ b/.github/workflows/backend-build-test.yml
@@ -46,7 +46,7 @@ jobs:
- uses: ./script/ci/github-actions/setup-deps
- name: Build with Maven
- run: mvn clean -B package -Prelease -Dmaven.test.skip=false --file
pom.xml
+ run: mvnd clean -B package -Prelease -Dmaven.test.skip=false --file
pom.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
diff --git a/script/ci/github-actions/setup-deps/action.yml
b/script/ci/github-actions/setup-deps/action.yml
index e0d39fc280..766041af8d 100644
--- a/script/ci/github-actions/setup-deps/action.yml
+++ b/script/ci/github-actions/setup-deps/action.yml
@@ -16,7 +16,7 @@
# under the License.
name: setup-deps
-description: Install host system dependencies
+description: Install host system dependencies (with mvnd)
runs:
using: composite
@@ -26,3 +26,18 @@ runs:
with:
distribution: "zulu"
java-version: 17
+
+ - name: Install mvnd
+ shell: bash
+ run: |
+ MVND_VERSION=1.0.2
+ curl -sL
https://downloads.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-linux-amd64.zip
-o mvnd.zip
+ unzip -q mvnd.zip
+ mkdir -p $HOME/.local
+ mv maven-mvnd-${MVND_VERSION}-linux-amd64 $HOME/.local/mvnd
+ echo "$HOME/.local/mvnd/bin" >> $GITHUB_PATH
+ echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV
+
+ - name: Verify mvnd installation
+ shell: bash
+ run: mvnd --version
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]