Skip to content

Commit 0df5823

Browse files
author
Hal Eisen
committed
SKIP pebble-custom-function-template-installer
1 parent a5f8d65 commit 0df5823

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/build-plugins.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,23 @@ jobs:
5454
# plugin), then stage each plugin's built .cgp under its own name. The
5555
# plugin-builder already names the artifact, so there is no rename map —
5656
# new plugins are picked up automatically.
57+
# Keep in sync with SKIP_PLUGINS in scripts/update-libs.sh.
58+
SKIP_PLUGINS=(pebble-custom-function-template-installer)
59+
5760
staged=0
5861
names=()
5962
for build_file in */build.gradle.kts; do
6063
[ -f "$build_file" ] || continue
6164
grep -qF "com.itsaky.androidide.plugins.build" "$build_file" || continue
6265
module="$(dirname "$build_file")"
66+
skip=0
67+
for s in "${SKIP_PLUGINS[@]}"; do
68+
[ "$s" = "$module" ] && skip=1 && break
69+
done
70+
if [ "$skip" -eq 1 ]; then
71+
echo "Skipping $module (in SKIP_PLUGINS)"
72+
continue
73+
fi
6374
src="$(ls "${module}/build/plugin/"*.cgp 2>/dev/null | grep -v -- '-debug\.cgp$' | head -n1)"
6475
if [ -z "$src" ]; then
6576
echo "ERROR: no release .cgp found under ${module}/build/plugin/ (did assemblePlugin run?)"

scripts/update-libs.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,27 @@ echo "Updated libs/ from CodeOnTheGo@$CODEONTHEGO_SHA"
109109
printf " %-20s %s\n" "plugin-api.jar" "$(du -h "$LIBS_DIR/plugin-api.jar" | cut -f1)"
110110
printf " %-20s %s\n" "gradle-plugin.jar" "$(du -h "$LIBS_DIR/gradle-plugin.jar" | cut -f1)"
111111

112+
# Plugins listed here are skipped by both the build loop below and the
113+
# staging loop in .github/workflows/build-plugins.yml. Keep the two in sync.
114+
SKIP_PLUGINS=(pebble-custom-function-template-installer)
115+
112116
PLUGINS=()
113117
for build_file in "$REPO_ROOT"/*/build.gradle.kts; do
114118
[ -f "$build_file" ] || continue
115119
if grep -qF "$PLUGIN_BUILDER_ID" "$build_file"; then
116-
PLUGINS+=("$(basename "$(dirname "$build_file")")")
120+
name="$(basename "$(dirname "$build_file")")"
121+
skip=0
122+
for s in "${SKIP_PLUGINS[@]}"; do
123+
if [ "$s" = "$name" ]; then
124+
skip=1
125+
break
126+
fi
127+
done
128+
if [ "$skip" -eq 1 ]; then
129+
echo "Skipping $name (in SKIP_PLUGINS)"
130+
continue
131+
fi
132+
PLUGINS+=("$name")
117133
fi
118134
done
119135

0 commit comments

Comments
 (0)