Skip to content

fix(ci): set OPENCODE_CHANNEL=latest to prevent database file split #3

fix(ci): set OPENCODE_CHANNEL=latest to prevent database file split

fix(ci): set OPENCODE_CHANNEL=latest to prevent database file split #3

Workflow file for this run

name: Build OpenCode
on:
push:
branches: [ feature/tool-input-delta ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
working-directory: packages/opencode
- name: Build
run: bun run build --single
working-directory: packages/opencode
env:
OPENCODE_CHANNEL: latest
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: opencode-${{ matrix.os }}
path: packages/opencode/dist/*/bin/*
retention-days: 7