Skip to content

Commit 15c233d

Browse files
CopilotMte90
andcommitted
Fix plugin descriptor and update CI to generate artifacts
- Remove missing icon reference from plugin.xml to fix descriptor loading - Update kotlin-ci.yml to run buildPlugin and upload the artifact - Artifact only generated when ide-plugins/** files are changed Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent 2ad069a commit 15c233d

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -58,40 +58,24 @@ jobs:
5858
run: ./gradlew --no-daemon --version
5959
working-directory: ide-plugins
6060

61-
- name: Full build with stacktrace (capture to file)
61+
- name: Build plugin
6262
env:
6363
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx3g"
6464
run: |
6565
set -o pipefail
66-
./gradlew build --no-daemon --stacktrace 2>&1 | tee ../gradle-build.log || true
66+
./gradlew buildPlugin --no-daemon --stacktrace 2>&1 | tee ../gradle-build.log
6767
working-directory: ide-plugins
68+
6869
- name: Upload build log
6970
uses: actions/upload-artifact@v4
7071
with:
7172
name: gradle-build-log-java-17
7273
path: gradle-build.log
74+
if: always()
7375

74-
- name: Build Kotlin plugin subproject if present
75-
run: |
76-
set -o pipefail
77-
if ./gradlew :kotlin:tasks --dry-run &>/dev/null; then
78-
echo "Detected :kotlin subproject -> building it"
79-
./gradlew :kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
80-
echo "Uploading kotlin-subproject-build.log"
81-
ls -la ../kotlin-subproject-build.log || true
82-
elif ./gradlew :plugin:kotlin:tasks --dry-run &>/dev/null; then
83-
echo "Detected :plugin:kotlin subproject -> building it"
84-
./gradlew :plugin:kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
85-
else
86-
echo "No explicit kotlin plugin subproject found; running assemble on all projects"
87-
./gradlew assemble --no-daemon --stacktrace 2>&1 | tee ../assemble.log || true
88-
fi
89-
working-directory: ide-plugins
90-
- name: Upload kotlin-subproject/build logs if present
76+
- name: Upload plugin artifact
9177
uses: actions/upload-artifact@v4
9278
with:
93-
name: kotlin-subproject-logs-java-17
94-
path: |
95-
kotlin-subproject-build.log
96-
assemble.log
97-
if: always()
79+
name: intellij-plugin-pr-${{ github.event.pull_request.number || github.run_number }}
80+
path: ide-plugins/build/distributions/*.zip
81+
if: success()

ide-plugins/src/main/resources/META-INF/plugin.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<extensions defaultExtensionNs="com.intellij">
1414
<toolWindow id="PicoCode RAG"
1515
secondary="true"
16-
icon="/icons/picocode.png"
1716
anchor="right"
1817
factoryClass="com.picocode.PicoCodeToolWindowFactory"/>
1918
<statusBarWidgetFactory implementation="com.picocode.PicoCodeStatusBarWidgetFactory"

0 commit comments

Comments
 (0)