This is an automated email from the ASF dual-hosted git repository.
Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 292b73b251 infra(ci): use maven wrapper instead of mvnd on Windows to
avoid daemon crash (#6436)
292b73b251 is described below
commit 292b73b251ebc8c8afaa3c9474c0eb4e7be6e6db
Author: Duansg <[email protected]>
AuthorDate: Tue Jul 21 08:37:36 2026 +0800
infra(ci): use maven wrapper instead of mvnd on Windows to avoid daemon
crash (#6436)
---
.github/workflows/ci.yml | 34 +++++++++++++---------------------
1 file changed, 13 insertions(+), 21 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 680258ec10..347d9e8d02 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -106,42 +106,34 @@ jobs:
java-version: ${{ matrix.java }}
distribution: "temurin"
- name: Install mvnd
+ if: ${{ runner.os != 'Windows' }}
shell: bash
run: |
MVND_VERSION=1.0.2
- if [[ "${{ runner.os }}" == "Windows" ]]; then
- curl -sL
https://downloads.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-windows-amd64.zip
-o mvnd.zip
- unzip -q mvnd.zip
- mkdir -p $HOME/.local
- mv maven-mvnd-${MVND_VERSION}-windows-amd64 $HOME/.local/mvnd
- echo "$HOME/.local/mvnd/bin" >> $GITHUB_PATH
- echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV
- else
- 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
- fi
+ 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
+ if: ${{ runner.os != 'Windows' }}
shell: bash
run: mvnd --version || echo "mvnd version check failed, will use maven
wrapper as fallback"
- name: Build with Maven
shell: bash
run: |
- if mvnd --version > /dev/null 2>&1; then
+ if [[ "${{ runner.os }}" == "Windows" ]]; then
+ echo "Building with maven wrapper on Windows"
+ ./mvnw.cmd -B clean test -Prelease
+ elif mvnd --version > /dev/null 2>&1; then
echo "Using mvnd for build"
mvnd -B clean test -Prelease
else
echo "Falling back to maven wrapper"
- if [[ "${{ runner.os }}" == "Windows" ]]; then
- ./mvnw.cmd -B clean test -Prelease
- else
- ./mvnw -B clean test -Prelease
- fi
+ ./mvnw -B clean test -Prelease
fi
- uses: codecov/codecov-action@v1
with: