Skip to content

Commit 78dc1d6

Browse files
committed
fix: update platform mapping for macOS in CI configuration
1 parent af77cb9 commit 78dc1d6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ jobs:
412412
# 映射GitHub Actions平台名称到Node.js标准平台名称
413413
case "${{ matrix.os }}" in
414414
ubuntu-latest|ubuntu-*) PLATFORM_NAME="linux" ;;
415-
macos-latest) PLATFORM_NAME="darwin" ;;
415+
macos*) PLATFORM_NAME="darwin" ;;
416416
windows-latest) PLATFORM_NAME="win32" ;;
417417
*) PLATFORM_NAME="${{ matrix.os }}" ;;
418418
esac
@@ -539,11 +539,11 @@ jobs:
539539
echo " • PWD: $(pwd)"
540540
echo " • User: $(whoami)"
541541
echo ""
542-
542+
543543
# 映射GitHub Actions平台名称到Node.js标准平台名称
544544
case "${{ matrix.os }}" in
545545
ubuntu-latest|ubuntu-*) PLATFORM_NAME="linux" ;;
546-
macos-latest) PLATFORM_NAME="darwin" ;;
546+
macos*) PLATFORM_NAME="darwin" ;;
547547
windows-latest) PLATFORM_NAME="win32" ;;
548548
*) PLATFORM_NAME="${{ matrix.os }}" ;;
549549
esac

0 commit comments

Comments
 (0)