Skip to content

构建: 为silk包构建添加universal目标 #21

构建: 为silk包构建添加universal目标

构建: 为silk包构建添加universal目标 #21

Workflow file for this run

name: Release
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
show-progress: true
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21.x"
- name: Install dependencies
run: |
brew update
brew install make
- name: Build C binary
run: |
cd ./pkg/audio/silk
make universal
- name: Build go binary
run: |
CGO_ENABLED=1 GOARCH=arm64 go build -v -o chat-copilot_arm64 ./cmd/...
CGO_ENABLED=1 GOARCH=amd64 go build -v -o chat-copilot_amd64 ./cmd/...