mirror of https://github.com/buster-so/buster.git
CLI Release fix
This commit is contained in:
parent
15477b34d0
commit
da4b5c0b3a
|
@ -17,72 +17,24 @@ permissions:
|
||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deps:
|
build-linux:
|
||||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Node Environment
|
|
||||||
uses: ./.github/actions/setup-node-env
|
|
||||||
with:
|
|
||||||
install-filter: "@buster-app/cli..."
|
|
||||||
|
|
||||||
- name: Build dependencies with Turbo
|
|
||||||
run: |
|
|
||||||
echo "🔨 Building CLI dependencies with Turbo..."
|
|
||||||
pnpm turbo build --filter=@buster-app/cli^...
|
|
||||||
env:
|
|
||||||
NODE_ENV: production
|
|
||||||
SKIP_ENV_CHECK: true
|
|
||||||
TURBO_CACHE_DIR: .turbo
|
|
||||||
TURBO_TELEMETRY_DISABLED: 1
|
|
||||||
|
|
||||||
- name: Create archive of built workspace
|
|
||||||
run: |
|
|
||||||
echo "Creating workspace archive..."
|
|
||||||
tar czf workspace-deps.tar.gz \
|
|
||||||
--exclude='*.log' \
|
|
||||||
--exclude='.git' \
|
|
||||||
node_modules \
|
|
||||||
apps/*/node_modules \
|
|
||||||
packages/*/node_modules \
|
|
||||||
apps/*/dist \
|
|
||||||
packages/*/dist \
|
|
||||||
pnpm-lock.yaml
|
|
||||||
echo "Archive size: $(du -h workspace-deps.tar.gz | cut -f1)"
|
|
||||||
|
|
||||||
- name: Upload workspace archive
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: workspace-deps
|
|
||||||
path: workspace-deps.tar.gz
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
build-linux:
|
|
||||||
needs: build-deps
|
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Download workspace archive
|
- name: Install dependencies
|
||||||
uses: actions/download-artifact@v4
|
working-directory: ./apps/cli
|
||||||
with:
|
|
||||||
name: workspace-deps
|
|
||||||
|
|
||||||
- name: Extract workspace archive
|
|
||||||
run: |
|
run: |
|
||||||
echo "Extracting workspace archive..."
|
echo "📦 Installing CLI dependencies..."
|
||||||
tar xzf workspace-deps.tar.gz
|
bun install --frozen-lockfile
|
||||||
echo "Workspace restored"
|
|
||||||
|
|
||||||
- name: Build Linux binary
|
- name: Build Linux binary
|
||||||
working-directory: ./apps/cli
|
working-directory: ./apps/cli
|
||||||
|
@ -114,7 +66,6 @@ jobs:
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
build-macos-x64:
|
build-macos-x64:
|
||||||
needs: build-deps
|
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -125,16 +76,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Download workspace archive
|
- name: Install dependencies
|
||||||
uses: actions/download-artifact@v4
|
working-directory: ./apps/cli
|
||||||
with:
|
|
||||||
name: workspace-deps
|
|
||||||
|
|
||||||
- name: Extract workspace archive
|
|
||||||
run: |
|
run: |
|
||||||
echo "Extracting workspace archive..."
|
echo "📦 Installing CLI dependencies..."
|
||||||
tar xzf workspace-deps.tar.gz
|
bun install --frozen-lockfile
|
||||||
echo "Workspace restored"
|
|
||||||
|
|
||||||
- name: Build macOS x64 binary
|
- name: Build macOS x64 binary
|
||||||
working-directory: ./apps/cli
|
working-directory: ./apps/cli
|
||||||
|
@ -162,7 +108,6 @@ jobs:
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
build-macos-arm64:
|
build-macos-arm64:
|
||||||
needs: build-deps
|
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -173,16 +118,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Download workspace archive
|
- name: Install dependencies
|
||||||
uses: actions/download-artifact@v4
|
working-directory: ./apps/cli
|
||||||
with:
|
|
||||||
name: workspace-deps
|
|
||||||
|
|
||||||
- name: Extract workspace archive
|
|
||||||
run: |
|
run: |
|
||||||
echo "Extracting workspace archive..."
|
echo "📦 Installing CLI dependencies..."
|
||||||
tar xzf workspace-deps.tar.gz
|
bun install --frozen-lockfile
|
||||||
echo "Workspace restored"
|
|
||||||
|
|
||||||
- name: Build macOS ARM64 binary
|
- name: Build macOS ARM64 binary
|
||||||
working-directory: ./apps/cli
|
working-directory: ./apps/cli
|
||||||
|
@ -210,7 +150,6 @@ jobs:
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
needs: build-deps
|
|
||||||
runs-on: blacksmith-2vcpu-ubuntu-2404
|
runs-on: blacksmith-2vcpu-ubuntu-2404
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -221,16 +160,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: latest
|
||||||
|
|
||||||
- name: Download workspace archive
|
- name: Install dependencies
|
||||||
uses: actions/download-artifact@v4
|
working-directory: ./apps/cli
|
||||||
with:
|
|
||||||
name: workspace-deps
|
|
||||||
|
|
||||||
- name: Extract workspace archive
|
|
||||||
run: |
|
run: |
|
||||||
echo "Extracting workspace archive..."
|
echo "📦 Installing CLI dependencies..."
|
||||||
tar xzf workspace-deps.tar.gz
|
bun install --frozen-lockfile
|
||||||
echo "Workspace restored"
|
|
||||||
|
|
||||||
- name: Build Windows binary
|
- name: Build Windows binary
|
||||||
working-directory: ./apps/cli
|
working-directory: ./apps/cli
|
||||||
|
|
Loading…
Reference in New Issue