Fix build-bun.sh

This commit is contained in:
Ashcon Partovi
2024-08-25 09:48:38 -07:00
committed by GitHub
parent c4f4d7c872
commit 3896b0e29f

View File

@@ -48,12 +48,13 @@ for name in bun bun-profile; do
fi
run_command chmod +x "$name"
run_command "./$name" --revision
if [ "$name" == "bun-profile" ]; then
BUN_FEATURE_FLAG_INTERNAL_FOR_TESTING=1 "./$name" -e "require('fs').writeFileSync('./features.json', JSON.stringify(require('bun:internal-for-testing').crash_handler.getFeatureData()))"
source "$cwd/.buildkite/scripts/upload-artifact.sh" "features.json"
fi
run_command mkdir -p "$dir"
run_command mv "$name" "$dir/$name"
run_command zip -r "$dir.zip" "$dir"
source "$cwd/.buildkite/scripts/upload-artifact.sh" "$dir.zip"
if [ "$name" == "bun-profile" ]; then
export BUN_FEATURE_FLAG_INTERNAL_FOR_TESTING="1"
run_command "./$name" -e "require('fs').writeFileSync('./features.json', JSON.stringify(require('bun:internal-for-testing').crash_handler.getFeatureData()))"
source "$cwd/.buildkite/scripts/upload-artifact.sh" "features.json"
fi
done