-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (101 loc) · 2.97 KB
/
Copy pathrelease.yml
File metadata and controls
113 lines (101 loc) · 2.97 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25.x'
- name: Vet
run: go vet ./...
- name: Unit tests
run: go test ./...
- name: Integration tests
run: go test -tags integration ./internal/integration/...
build-cli:
name: Build CLI (${{ matrix.goos }}/${{ matrix.goarch }})
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: linux
goarch: amd64
ext: ''
- goos: linux
goarch: arm64
ext: ''
- goos: darwin
goarch: amd64
ext: ''
- goos: darwin
goarch: arm64
ext: ''
- goos: windows
goarch: amd64
ext: .exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25.x'
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: '0'
run: |
go build -o "orca-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}" ./cmd/orca
sha256sum "orca-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}" | awk '{print $1}' > "orca-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}.sha256"
- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
files: |
orca-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}
orca-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.ext }}.sha256
# ---------------------------------------------------------------------------
# Desktop build stub (DISABLED — not yet ready to ship)
#
# Requirements before enabling:
# - Wails app in desktop/ is production-ready
# - Node.js 18+ (for Wails frontend build)
# - wails CLI: go install github.com/wailsapp/wails/v2/cmd/wails@latest
# - Choose runner OS to match target platform (macos-latest for .app bundles,
# windows-latest for .exe; cross-compilation is not supported by Wails)
#
# To enable: uncomment the job block below and remove this comment block.
#
# build-desktop:
# name: Build Desktop
# needs: build-cli
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
#
# - uses: actions/setup-go@v5
# with:
# go-version: '1.25.x'
#
# - uses: actions/setup-node@v4
# with:
# node-version: '18'
#
# - name: Install Wails CLI
# run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
#
# - name: Build desktop binary
# working-directory: desktop
# run: wails build
#
# - name: Upload desktop release asset
# uses: softprops/action-gh-release@v2
# with:
# files: desktop/build/bin/orca-desktop*