ci: map macOS to darwin in bun download URL

This commit is contained in:
LukeParkerDev
2026-02-24 10:07:21 +10:00
parent 31658df49e
commit ec4c39547d

View File

@@ -16,7 +16,11 @@ runs:
shell: bash
run: |
V=$(node -p "require('./package.json').packageManager.split('@')[1]")
OS=$(echo "$RUNNER_OS" | tr '[:upper:]' '[:lower:]')
case "$RUNNER_OS" in
macOS) OS=darwin ;;
Linux) OS=linux ;;
Windows) OS=windows ;;
esac
echo "url=https://bun.sh/download/${V}/${OS}/x64?avx2=false&profile=false" >> "$GITHUB_OUTPUT"
- name: Setup Bun