Skip to content

Commit 2b8955a

Browse files
committed
ci: 修复干净 runner 依赖解析
1 parent c9f0322 commit 2b8955a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,23 @@ jobs:
3434
java-version: '8'
3535
cache: maven
3636

37+
- name: Install Easy4J snapshot dependencies
38+
env:
39+
EASY4J_BRANCH: ${{ github.base_ref || github.ref_name }}
40+
EASY4J_DEPENDENCIES: "hitool"
41+
run: |
42+
set -euo pipefail
43+
dependency_root="${RUNNER_TEMP}/easy4j-dependencies"
44+
mkdir -p "${dependency_root}"
45+
for dependency in ${EASY4J_DEPENDENCIES}; do
46+
git clone --depth 1 --branch "${EASY4J_BRANCH}" \
47+
"https://github.com/easy-4-java/${dependency}.git" \
48+
"${dependency_root}/${dependency}"
49+
mvn -B --no-transfer-progress \
50+
-f "${dependency_root}/${dependency}/pom.xml" \
51+
-DskipTests -Djacoco.skip=true -Dgpg.skip=true install
52+
done
53+
3754
- name: Build and verify with JaCoCo coverage gate
3855
run: mvn -B --no-transfer-progress clean verify
3956

0 commit comments

Comments
 (0)