forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 948 Bytes
/
Copy pathci.yml
File metadata and controls
36 lines (29 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CI
on:
push:
branches: [fork/local]
pull_request:
branches: [fork/local]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: false
token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure submodule credentials
run: |
if [ -n "${{ secrets.SUBMODULE_PAT }}" ]; then
git config --global url."https://${{ secrets.SUBMODULE_PAT }}@github.com/rustybret/pvrdrxtd".insteadOf \
"https://github.com/rustybret/pvrdrxtd"
fi
git submodule update --init --recursive 2>&1 || true
- uses: ./.github/actions/setup-bun
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Single Binary
run: ./packages/opencode/script/build.ts --single