ci: check for valid compilation artifacts in alpine stage (#284096)

* ci: check for valid compilation artifacts in alpine stage

* chore: address review feedback

* chore: improve logging
This commit is contained in:
Robo
2026-01-15 04:59:35 +09:00
committed by GitHub
parent ace789bc8d
commit be85fe8eae

View File

@@ -100,6 +100,23 @@ jobs:
GITHUB_TOKEN: "$(github-distro-mixin-password)"
displayName: Compile & Hygiene
- script: |
set -e
[ -d "out-build" ] || { echo "ERROR: out-build folder is missing" >&2; exit 1; }
[ -n "$(find out-build -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: out-build folder is empty" >&2; exit 1; }
echo "out-build exists and is not empty"
ls -d out-vscode-* >/dev/null 2>&1 || { echo "ERROR: No out-vscode-* folders found" >&2; exit 1; }
for folder in out-vscode-*; do
[ -d "$folder" ] || { echo "ERROR: $folder is missing" >&2; exit 1; }
[ -n "$(find "$folder" -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: $folder is empty" >&2; exit 1; }
echo "$folder exists and is not empty"
done
echo "All required compilation folders checked."
displayName: Validate compilation folders
- script: |
set -e
npm run compile