Skip to content

Commit bccd7d8

Browse files
committed
Fix JRE size detection: search for jre directory dynamically
- Use find to locate jre directory instead of hardcoded path - Add debug output to show wheel structure - Works with any package name (arcadedb vs arcadedb_embedded)
1 parent 2b3da67 commit bccd7d8

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/release-python-packages.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ jobs:
186186
TEMP_DIR=$(mktemp -d)
187187
unzip -q "$WHEEL_FILE" -d "$TEMP_DIR"
188188
189-
# Calculate component sizes
190-
if [ -d "$TEMP_DIR"/arcadedb/jre ]; then
191-
JRE_SIZE_BYTES=$(du -sb "$TEMP_DIR"/arcadedb/jre | cut -f1)
189+
# Calculate component sizes (find jre directory anywhere)
190+
JRE_DIR=$(find "$TEMP_DIR" -type d -name "jre" | head -n1)
191+
if [ -n "$JRE_DIR" ] && [ -d "$JRE_DIR" ]; then
192+
JRE_SIZE_BYTES=$(du -sb "$JRE_DIR" | cut -f1)
192193
JRE_SIZE_MB=$(echo "scale=1; $JRE_SIZE_BYTES / 1024 / 1024" | bc)
193194
else
194195
JRE_SIZE_MB="N/A"

.github/workflows/test-python-bindings.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,15 @@ jobs:
130130
TEMP_DIR=$(mktemp -d)
131131
unzip -q "$WHEEL_FILE" -d "$TEMP_DIR"
132132
133-
# Calculate JRE size (in jre/ directory)
134-
if [ -d "$TEMP_DIR"/arcadedb/jre ]; then
135-
JRE_SIZE_BYTES=$(du -sb "$TEMP_DIR"/arcadedb/jre 2>/dev/null | cut -f1)
133+
# List structure for debugging
134+
echo "📁 Wheel structure:"
135+
ls -la "$TEMP_DIR"/ || true
136+
find "$TEMP_DIR" -type d -name "jre" || true
137+
138+
# Calculate JRE size (look for jre/ directory anywhere)
139+
JRE_DIR=$(find "$TEMP_DIR" -type d -name "jre" | head -n1)
140+
if [ -n "$JRE_DIR" ] && [ -d "$JRE_DIR" ]; then
141+
JRE_SIZE_BYTES=$(du -sb "$JRE_DIR" 2>/dev/null | cut -f1)
136142
JRE_SIZE_MB=$(echo "scale=1; $JRE_SIZE_BYTES / 1024 / 1024" | bc)
137143
else
138144
JRE_SIZE_MB="N/A"

0 commit comments

Comments
 (0)