Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
# 17 builds and runs Maven (the last version is the default); the
# build provider is also tested on 8, the oldest plugin.json accepts.
# 17 builds the extension and runs the latest Maven (the last version
# is the default); the oldest Maven runs the extension on Java 8.
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand All @@ -32,16 +32,8 @@ jobs:
17
- name: Check script process deadlines and cleanup
run: node scripts/test-process.mjs
- name: Verify vendored Java SDK sources
run: node scripts/sdk/verify-sdk.mjs
- name: Check manifest and build the archive
run: node scripts/package.mjs
- name: Test the build provider's snapshot with a fake Maven (Java 17)
run: node scripts/test-backend.mjs
- name: Test the build provider's snapshot with a fake Maven (Java 8)
env:
LITHE_TEST_JAVA: ${{ env.JAVA_HOME_8_X64 }}/bin/java
run: node scripts/test-backend.mjs
- name: Download Maven ${{ matrix.maven }}
if: matrix.maven != 'runner'
env:
Expand All @@ -52,10 +44,10 @@ jobs:
echo "$(curl -fsSL "$base.sha512" | cut -d' ' -f1) $RUNNER_TEMP/maven.tar.gz" | sha512sum -c -
tar -xzf "$RUNNER_TEMP/maven.tar.gz" -C "$RUNNER_TEMP"
echo "MVN=$RUNNER_TEMP/apache-maven-$VERSION/bin/mvn" >> "$GITHUB_ENV"
- name: Run the provider and the declared commands with Maven
- name: Run the declared commands with Maven
env:
# The oldest Maven also gets the oldest Java for the provider.
LITHE_TEST_JAVA: ${{ matrix.maven == 'runner' && 'java' || format('{0}/bin/java', env.JAVA_HOME_8_X64) }}
# The oldest Maven also runs on the oldest Java.
JAVA_HOME: ${{ matrix.maven == 'runner' && env.JAVA_HOME || env.JAVA_HOME_8_X64 }}
run: node scripts/test.mjs
- name: Validate against Lithe Store rules
if: matrix.maven == 'runner'
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,35 @@ jobs:
java-version: |
8
17
# --expect-tag requires the tag to match plugin.json and both POM versions.
# --expect-tag requires the tag to match plugin.json and the extension POM version.
- name: Build the archive
run: |
set -o pipefail
node scripts/package.mjs --expect-tag "$GITHUB_REF_NAME" | tee "$RUNNER_TEMP/checksums.txt"
- name: Test the build provider's snapshot on Java 8
- name: Run the declared commands with Maven on Java 8
env:
LITHE_TEST_JAVA: ${{ env.JAVA_HOME_8_X64 }}/bin/java
run: node scripts/test-backend.mjs
- name: Run the provider and the declared commands with Maven
JAVA_HOME: ${{ env.JAVA_HOME_8_X64 }}
run: node scripts/test.mjs
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
# v0.1.0 was a trial release. v0.1.2 needs a host offering
# litheLogging 1, which stable Lithe 0.6.7 lacks. v0.1.3 also
# requires pluginFunctions 1, so stable hosts refuse to install it
# and the Store's requires map keeps them on 0.1.1.
PRERELEASE_TAGS: v0.1.0 v0.1.2
# v0.0.1 follows plugin contract v0, which only the new desktop
# client installs, and that client ships as desktop-v* pre-releases.
PRERELEASE_TAGS: v0.0.1
run: |
prerelease=false
for tag in $PRERELEASE_TAGS; do
if [[ "$tag" == "$GITHUB_REF_NAME" ]]; then prerelease=true; fi
done
{
echo "兼容性:需要同时提供 backend 2、pluginFunctions 1、projectGenerators 1 和结构化插件诊断(litheLogging 1)的 Lithe preview 开发版或更新的客户端。稳定版 Lithe 0.6.7 没有 pluginFunctions 1,会拒绝安装 0.1.3;稳定版请继续使用 0.1.1。0.1.2 预览版不再单独说明,由 0.1.3 取代。"
echo "兼容性:按插件契约 v0(schemaVersion 0、pluginAPIVersion 0)编写,需要新版 Lithe 桌面端(desktop-v* 预发布)。旧版 macOS Lithe 无法安装。"
echo
if [[ -s "docs/releases/$GITHUB_REF_NAME.md" ]]; then
cat "docs/releases/$GITHUB_REF_NAME.md"
echo
fi
if [[ "$prerelease" == true ]]; then
echo "安装:预发布版本,Lithe Store 自动追踪会跳过,暂不收录 Store。下载下面的 ZIP,在 设置 → 插件 的 ⚙ 菜单中选择 从磁盘安装插件…。"
echo "安装:预发布版本,Lithe Store 自动追踪会跳过,暂不收录 Store。下载下面的 ZIP,在 设置 → 插件 中点击页面标题栏右侧的 从文件安装…,选中 ZIP 后核对 SHA-256 并确认。"
else
echo "安装:Lithe Store(https://github.com/Lithe-IDEA/Lithe-store)中的 Maven 条目合并后,可在 设置 → 插件 → 插件市场 中搜索 Maven 并安装。"
fi
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ dist/
.artifacts/
extension/target/
.DS_Store
backend/target/
.cache/
5 changes: 0 additions & 5 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ resources, moved from the Java Support plugin), under the Apache License,
Version 2.0. Their exact file paths and revision are not recorded.

Copyright 2000-2024 JetBrains s.r.o. and contributors.

The backend includes the Apache-2.0 licensed official Lithe Java plugin SDK
from Lithe-IDEA/lithe-plugin-docs. Its production sources and LICENSE are
vendored in vendor/, with upstream base revision, local structured logging
changes and exact SHA-256 per input recorded in sdk.lock.json.
Loading
Loading