From 3d93a0a1e812ab026f56aab829c1299c3bdf18c5 Mon Sep 17 00:00:00 2001 From: Dillon DuPont Date: Fri, 14 Nov 2025 16:50:42 -0500 Subject: [PATCH] Simplify cli publish workflow to cross compile to all targets using the same platform --- .github/workflows/npm-publish-cli.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/npm-publish-cli.yml b/.github/workflows/npm-publish-cli.yml index 025da7a5..e74654f8 100644 --- a/.github/workflows/npm-publish-cli.yml +++ b/.github/workflows/npm-publish-cli.yml @@ -17,26 +17,21 @@ jobs: strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] include: - - os: ubuntu-latest - target: bun-linux-x64 + - target: bun-linux-x64 ext: '' binary_name: cua-linux-x64 - - os: macos-latest - target: bun-darwin-x64 + - target: bun-darwin-x64 ext: '' binary_name: cua-darwin-x64 - - os: macos-latest - target: bun-darwin-arm64 + - target: bun-darwin-arm64 ext: '' binary_name: cua-darwin-arm64 - - os: windows-latest - target: bun-windows-x64 + - target: bun-windows-x64 ext: '.exe' binary_name: cua-windows-x64.exe - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - name: Checkout code @@ -73,7 +68,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: cua-binary-${{ matrix.os }} + name: cua-binary-${{ matrix.target }} path: dist/ if-no-files-found: error retention-days: 1