This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-graalvm-distro.git
The following commit(s) were added to refs/heads/main by this push:
new ea71244 Rename build-skywalking to init-skywalking in Makefile and CI
ea71244 is described below
commit ea7124439dd8eb477e29b1a1c79f61a2db3b1406
Author: Wu Sheng <[email protected]>
AuthorDate: Wed Feb 25 22:08:11 2026 +0800
Rename build-skywalking to init-skywalking in Makefile and CI
---
.github/workflows/ci.yml | 18 +++++++++---------
Makefile | 8 ++++----
README.md | 4 ++--
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 321e261..ab72b3a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,9 +40,9 @@ jobs:
- name: Check license headers
uses: apache/skywalking-eyes/header@main
- # ── Shared: build skywalking submodule and cache .m2/repository ──
- build-skywalking:
- name: Build SkyWalking Submodule
+ # ── Shared: init skywalking submodule and cache .m2/repository ──
+ init-skywalking:
+ name: Init SkyWalking Submodule
runs-on: ubuntu-latest
outputs:
cache-key: ${{ steps.cache-key.outputs.key }}
@@ -69,15 +69,15 @@ jobs:
path: ~/.m2/repository
key: ${{ steps.cache-key.outputs.key }}
- - name: Build SkyWalking submodule
+ - name: Install SkyWalking submodule to Maven cache
if: steps.cache.outputs.cache-hit != 'true'
- run: make build-skywalking
+ run: make init-skywalking
# ── CI: compile, javadoc, test, distro ──
ci:
name: Build & Test
runs-on: ubuntu-latest
- needs: build-skywalking
+ needs: init-skywalking
steps:
- name: Checkout with submodules
uses: actions/checkout@v4
@@ -94,7 +94,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
- key: ${{ needs.build-skywalking.outputs.cache-key }}
+ key: ${{ needs.init-skywalking.outputs.cache-key }}
- name: Compile & Install
run: make compile
@@ -112,7 +112,7 @@ jobs:
build-native:
name: Native ${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
- needs: build-skywalking
+ needs: init-skywalking
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
strategy:
matrix:
@@ -142,7 +142,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ~/.m2/repository
- key: ${{ needs.build-skywalking.outputs.cache-key }}
+ key: ${{ needs.init-skywalking.outputs.cache-key }}
- name: Build native image
run: make native-image
diff --git a/Makefile b/Makefile
index 98461ee..69fd29f 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ SW_VERSION := $(shell grep '<revision>' skywalking/pom.xml |
head -1 | sed 's/.*
MVN := ./mvnw
MVN_ARGS := -Dskywalking.version=$(SW_VERSION)
-.PHONY: all clean build init-submodules build-skywalking build-distro compile
test javadoc dist info docker-up docker-down boot shutdown native-image
native-image-macos native-dist trace-agent docker-native
+.PHONY: all clean build init-submodules init-skywalking build-distro compile
test javadoc dist info docker-up docker-down boot shutdown native-image
native-image-macos native-dist trace-agent docker-native
all: build
@@ -30,9 +30,9 @@ info:
init-submodules:
cd skywalking && git submodule update --init --recursive
-# Build the skywalking submodule and install artifacts to local Maven repo
+# Init skywalking submodule and install artifacts to local Maven repo
# flatten-maven-plugin resolves ${revision} in installed POMs so external
projects can depend on them
-build-skywalking: init-submodules
+init-skywalking: init-submodules
cd skywalking && ../mvnw flatten:flatten install -DskipTests
-Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dgpg.skip=true
# Compile + install to local repo (no tests).
@@ -71,7 +71,7 @@ native-dist: native-image
@ls oap-graalvm-native/target/oap-graalvm-native-*-native-dist.tar.gz
2>/dev/null
# Full build: skywalking first, then distro
-build: build-skywalking build-distro
+build: init-skywalking build-distro
clean:
$(MVN) clean $(MVN_ARGS)
diff --git a/README.md b/README.md
index da1ad19..6c2c669 100644
--- a/README.md
+++ b/README.md
@@ -34,8 +34,8 @@ Requires GraalVM JDK 25.
# Initialize submodule
git submodule update --init --recursive
-# Build upstream SkyWalking (first time only)
-JAVA_HOME=/path/to/graalvm-jdk-25 make build-skywalking
+# Init upstream SkyWalking submodule and install to Maven cache (first time
only)
+JAVA_HOME=/path/to/graalvm-jdk-25 make init-skywalking
# Compile distro (precompiler + tests + server)
JAVA_HOME=/path/to/graalvm-jdk-25 make build-distro