Skip to content

Commit 5a219c0

Browse files
committed
u
1 parent 58c898e commit 5a219c0

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎.github/workflows/compile_and_release.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
run: |
4040
errors=0
4141
compiled_count=0
42+
skipped_count=0
4243
4344
# Find all .sp files in scripting directory (including subdirectories)
4445
find . -name "*.sp" -type f | while read -r file; do
@@ -50,20 +51,28 @@ jobs:
5051
5152
# Get the basename without extension
5253
filename=$(basename "$file" .sp)
53-
output_file="${filename}.smx"
54+
output_file="compiled/${filename}.smx"
55+
56+
# Check if compiled file already exists
57+
if [ -f "$output_file" ]; then
58+
echo "Already compiled: $file (skipping)"
59+
skipped_count=$((skipped_count + 1))
60+
continue
61+
fi
5462
5563
echo "Compiling $file -> $output_file"
56-
if spcomp -E -w234 -w217 -O2 -v2 -i "${{ env.SCRIPTS_PATH }}/include" "$file" -o "${{ env.SCRIPTS_PATH }}/compiled/$output_file"; then
64+
if spcomp -E -w234 -w217 -O2 -v2 -i "${{ env.SCRIPTS_PATH }}/include" "$file" -o "$output_file"; then
5765
compiled_count=$((compiled_count + 1))
5866
else
59-
echo "WARNING: Failed to compile $file - skipping"
67+
echo "::warning file=$file::Failed to compile plugin: $file"
6068
errors=$((errors + 1))
6169
fi
6270
done
6371
6472
echo ""
6573
echo "Compilation Summary:"
6674
echo "Successfully compiled: $compiled_count plugins"
75+
echo "Skipped (already compiled): $skipped_count plugins"
6776
echo "Failed to compile: $errors plugin(s)"
6877
working-directory: ${{ env.SCRIPTS_PATH }}/
6978

@@ -100,9 +109,9 @@ jobs:
100109
done
101110
fi
102111
103-
# If no matching file found, log warning and skip
112+
# If no matching file found, log warning notification and skip
104113
if [ "$found" = false ]; then
105-
echo "WARNING: No matching plugin file found for $filename - skipping"
114+
echo "::notice title=Plugin Not Found::No matching plugin file found for $filename - skipping"
106115
not_found_count=$((not_found_count + 1))
107116
fi
108117
fi

0 commit comments

Comments
 (0)