Skip to content

Commit ceb293a

Browse files
committed
fix(release): remove mac runner dependency for CLI binary builds
- switch `release-cli` binary matrix to cross-compile on `ubuntu-latest` - build Linux/Windows/macOS artifacts via Bun `--target` values - avoid unsupported `macos-13-us-default` runner configuration failures - keep artifact naming and release attachment behavior unchanged
1 parent 90ddada commit ceb293a

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/release-cli.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ jobs:
8383
fail-fast: false
8484
matrix:
8585
include:
86-
- os: ubuntu-latest
86+
- target: bun-linux-x64
8787
output_name: pushpals-linux-x64
88-
- os: windows-latest
88+
- target: bun-windows-x64
8989
output_name: pushpals-windows-x64.exe
90-
- os: macos-13
90+
- target: bun-darwin-x64
9191
output_name: pushpals-macos-x64
92-
- os: macos-14
92+
- target: bun-darwin-arm64
9393
output_name: pushpals-macos-arm64
94-
runs-on: ${{ matrix.os }}
94+
runs-on: ubuntu-latest
9595
steps:
9696
- name: Checkout
9797
uses: actions/checkout@v4
@@ -105,14 +105,15 @@ jobs:
105105
run: bun install --frozen-lockfile
106106

107107
- name: Build standalone binary
108-
shell: pwsh
108+
shell: bash
109109
run: |
110-
New-Item -ItemType Directory -Path dist -Force | Out-Null
111-
$output = Join-Path "dist" "${{ matrix.output_name }}"
112-
bun build scripts/pushpals-cli.ts --compile --outfile $output
113-
if ("${{ runner.os }}" -ne "Windows") {
114-
chmod +x $output
115-
}
110+
set -euo pipefail
111+
mkdir -p dist
112+
output="dist/${{ matrix.output_name }}"
113+
bun build scripts/pushpals-cli.ts --compile --target=${{ matrix.target }} --outfile "$output"
114+
if [[ "${{ matrix.target }}" != "bun-windows-x64" ]]; then
115+
chmod +x "$output"
116+
fi
116117
117118
- name: Upload binary artifact
118119
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)