Skip to content

feat: add ~/.claude/skills sync support and enhance docs #19

feat: add ~/.claude/skills sync support and enhance docs

feat: add ~/.claude/skills sync support and enhance docs #19

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
goos: linux
goarch: amd64
- os: ubuntu-latest
goos: linux
goarch: arm64
- os: macos-latest
goos: darwin
goarch: amd64
- os: macos-latest
goos: darwin
goarch: arm64
- os: windows-latest
goos: windows
goarch: amd64
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags="-s -w -X github.com/GareArc/opencode-sync/internal/cli.version=${{ github.sha }}" -o opencode-sync-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goos == 'windows' && '.exe' || '' }} ./cmd/opencode-sync
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: opencode-sync-${{ matrix.goos }}-${{ matrix.goarch }}
path: opencode-sync-${{ matrix.goos }}-${{ matrix.goarch }}*