This is an automated email from the ASF dual-hosted git repository.
fanng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 8c0ef5b2a2 [#8061] improvement(mcp-server): Add a CI pipeline to build
module `mcp` specifically. (#8062)
8c0ef5b2a2 is described below
commit 8c0ef5b2a29868e7dfb4198532de6ac07877109f
Author: Mini Yu <[email protected]>
AuthorDate: Fri Aug 15 20:43:05 2025 +0800
[#8061] improvement(mcp-server): Add a CI pipeline to build module `mcp`
specifically. (#8062)
### What changes were proposed in this pull request?
Add a CI pipeline to build module `mcp` specifically if there only
changes in moudle `mcp-server`.
### Why are the changes needed?
To optimize CI resources
Fix: #8061
### Does this PR introduce _any_ user-facing change?
N/A.
### How was this patch tested?
CI
---
.github/workflows/build.yml | 68 +++++++++++++++++++++++++++++++--------------
1 file changed, 47 insertions(+), 21 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2a0c68e483..05abd9d7fc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,31 +23,39 @@ jobs:
with:
filters: |
source_changes:
- - '.github/**'
- - 'catalogs/**'
- - 'clients/**'
- - 'conf/**'
- - 'dev/**'
- - 'docs/open-api/**'
- - 'gradle/**'
- - 'gradle.properties'
- - 'meta/**'
- - 'scripts/**'
- - 'web/**'
- - '**/*.java'
- - '**/*.kts'
- - '**/*.py'
- - '**/*.rs'
- - '**/resources/**'
- - '**/src/**'
- - '!**/*.md'
- - '!**/*.png'
- - '!**/*.svg'
+ included:
+ - '.github/**'
+ - 'catalogs/**'
+ - 'clients/**'
+ - 'conf/**'
+ - 'dev/**'
+ - 'docs/open-api/**'
+ - 'gradle/**'
+ - 'gradle.properties'
+ - 'meta/**'
+ - 'scripts/**'
+ - 'web/**'
+ - '**/*.java'
+ - '**/*.kts'
+ - '**/*.py'
+ - '**/*.rs'
+ - '**/resources/**'
+ - '**/src/**'
+ excluded:
+ - 'mcp-server/**'
+ - '**/*.md'
+ - '**/*.png'
+ - '**/*.svg'
+
spark_connector_changes:
- spark-connector/**
+
+ mcp_server_changes:
+ - mcp-server/**
outputs:
source_changes: ${{ steps.filter.outputs.source_changes }}
spark_connector_changes: ${{
steps.filter.outputs.spark_connector_changes }}
+ mcp_server_changes: ${{ steps.filter.outputs.mcp_server_changes }}
compile-check:
runs-on: ubuntu-latest
@@ -63,7 +71,7 @@ jobs:
cache: 'gradle'
- name: Build with Gradle
- run: ./gradlew build -x test -PjdkVersion=8
+ run: ./gradlew build -x test -PjdkVersion=17
# To check the spark-connector is compatible with scala2.13
spark-connector-build:
@@ -98,6 +106,24 @@ jobs:
build/reports
spark-connector/**/*.log
+ mcp-server-build:
+ needs: changes
+ if: needs.changes.outputs.mcp_server_changes == 'true'
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-java@v4
+ with:
+ java-version: 17
+ distribution: 'temurin'
+ cache: 'gradle'
+
+ - name: Build MCP Server
+ run: |
+ ./gradlew :mcp-server:build
+
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest