Skip to content

Commit 4733a26

Browse files
Apply PR #23822: ci: add platform-specific bun install flags
2 parents a37fba8 + f6c7a8c commit 4733a26

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/actions/setup-bun/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: "Setup Bun"
22
description: "Setup Bun with caching and install dependencies"
3+
inputs:
4+
install-flags:
5+
description: "Additional flags to pass to 'bun install'"
6+
required: false
7+
default: ""
38
runs:
49
using: "composite"
510
steps:
@@ -46,8 +51,8 @@ runs:
4651
# e.g. ./patches/ for standard-openapi
4752
# https://github.com/oven-sh/bun/issues/28147
4853
if [ "$RUNNER_OS" = "Windows" ]; then
49-
bun install --linker hoisted
54+
bun install --linker hoisted ${{ inputs.install-flags }}
5055
else
51-
bun install
56+
bun install ${{ inputs.install-flags }}
5257
fi
5358
shell: bash

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,14 @@ jobs:
402402
fail-fast: false
403403
matrix:
404404
settings:
405-
- host: macos-latest
405+
- host: macos-26-intel
406406
target: x86_64-apple-darwin
407407
platform_flag: --mac --x64
408-
- host: macos-latest
408+
bun_install_flags: --os=darwin --cpu=x64
409+
- host: macos-26
409410
target: aarch64-apple-darwin
410411
platform_flag: --mac --arm64
412+
bun_install_flags: --os=darwin --cpu=arm64
411413
# github-hosted: blacksmith lacks ARM64 MSVC cross-compilation toolchain
412414
- host: "windows-2025"
413415
target: aarch64-pc-windows-msvc
@@ -437,6 +439,8 @@ jobs:
437439
run: echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8
438440

439441
- uses: ./.github/actions/setup-bun
442+
with:
443+
install-flags: ${{ matrix.settings.bun_install_flags }}
440444

441445
- name: Azure login
442446
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)