fix(ci): set OPENCODE_CHANNEL=latest to prevent database file split #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |