name: Build tinqs-git

on:
  push:
    branches: [tinqs/main]
  pull_request:
    branches: [tinqs/main]

jobs:
  build:
    runs-on: host
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-go@v5
        with:
          go-version: '1.26.2'
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
      - run: npm install -g pnpm
      - name: Build tinqs-git
        run: TAGS="bindata sqlite sqlite_unlock_notify" make build
      - name: Verify binary
        run: ls -lh gitea && echo "Build successful"
