-
-
Notifications
You must be signed in to change notification settings - Fork 1
275 lines (226 loc) · 7.91 KB
/
release.yml
File metadata and controls
275 lines (226 loc) · 7.91 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# Trinity Binary Release
# Builds cross-platform binaries and creates GitHub releases
# φ² + 1/φ² = 3 | PHOENIX = 999
name: Binary Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Version tag (e.g., v1.0.0)'
required: true
default: 'v1.0.0'
env:
CARGO_TERM_COLOR: always
ZIG_VERSION: 0.15.2
jobs:
build-linux-amd64:
name: Build Linux (amd64)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build Trinity (Linux amd64)
run: |
zig build -Dtarget=x86_64-linux-gnu.2.35 -Drelease-safe=true
zig build vibee -Dtarget=x86_64-linux-gnu.2.35 -Drelease-safe=true
- name: Create archive
run: |
mkdir -p release
cp zig-out/bin/tri release/tri-linux-amd64
cp zig-out/bin/vibee release/vibee-linux-amd64
chmod +x release/tri-linux-amd64 release/vibee-linux-amd64
tar czf trinity-linux-amd64.tar.gz -C release tri-linux-amd64 vibee-linux-amd64
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-amd64
path: trinity-linux-amd64.tar.gz
build-linux-arm64:
name: Build Linux (arm64)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build Trinity (Linux arm64)
run: |
zig build -Dtarget=aarch64-linux-gnu.2.35 -Drelease-safe=true
zig build vibee -Dtarget=aarch64-linux-gnu.2.35 -Drelease-safe=true
- name: Create archive
run: |
mkdir -p release
cp zig-out/bin/tri release/tri-linux-arm64
cp zig-out/bin/vibee release/vibee-linux-arm64
chmod +x release/tri-linux-arm64 release/vibee-linux-arm64
tar czf trinity-linux-arm64.tar.gz -C release tri-linux-arm64 vibee-linux-arm64
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: linux-arm64
path: trinity-linux-arm64.tar.gz
build-macos-amd64:
name: Build macOS (amd64)
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build Trinity (macOS amd64)
run: |
zig build -Dtarget=x86_64-macos-none -Drelease-safe=true
zig build vibee -Dtarget=x86_64-macos-none -Drelease-safe=true
- name: Create archive
run: |
mkdir -p release
cp zig-out/bin/tri release/tri-macos-amd64
cp zig-out/bin/vibee release/vibee-macos-amd64
chmod +x release/tri-macos-amd64 release/vibee-macos-amd64
tar czf trinity-macos-amd64.tar.gz -C release tri-macos-amd64 vibee-macos-amd64
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-amd64
path: trinity-macos-amd64.tar.gz
build-macos-arm64:
name: Build macOS (arm64)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build Trinity (macOS arm64)
run: |
zig build -Dtarget=aarch64-macos-none -Drelease-safe=true
zig build vibee -Dtarget=aarch64-macos-none -Drelease-safe=true
- name: Create archive
run: |
mkdir -p release
cp zig-out/bin/tri release/tri-macos-arm64
cp zig-out/bin/vibee release/vibee-macos-arm64
chmod +x release/tri-macos-arm64 release/vibee-macos-arm64
tar czf trinity-macos-arm64.tar.gz -C release tri-macos-arm64 vibee-macos-arm64
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: macos-arm64
path: trinity-macos-arm64.tar.gz
build-windows:
name: Build Windows (amd64)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}
- name: Build Trinity (Windows amd64)
run: |
zig build -Dtarget=x86_64-windows-gnu -Drelease-safe=true
zig build vibee -Dtarget=x86_64-windows-gnu -Drelease-safe=true
- name: Create archive
run: |
mkdir -p release
cp zig-out/bin/tri.exe release/tri-windows-amd64.exe
cp zig-out/bin/vibee.exe release/vibee-windows-amd64.exe
zip trinity-windows-amd64.zip release/tri-windows-amd64.exe release/vibee-windows-amd64.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: windows-amd64
path: trinity-windows-amd64.zip
release:
name: Create Release
needs: [build-linux-amd64, build-linux-arm64, build-macos-amd64, build-macos-arm64, build-windows]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Prepare release assets
run: |
mkdir -p release-assets
find artifacts -name "*.tar.gz" -exec cp {} release-assets/ \;
find artifacts -name "*.zip" -exec cp {} release-assets/ \;
ls -la release-assets/
- name: Generate checksums
run: |
cd release-assets
sha256sum * > checksums.txt
cat checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v2
with:
make_latest: true
files: |
release-assets/*.tar.gz
release-assets/*.zip
release-assets/checksums.txt
body: |
## Trinity ${{ github.ref_name }}
**φ² + 1/φ² = 3 | PHOENIX = 999**
### Downloads
| Platform | Architecture | File |
|----------|--------------|------|
| Linux | AMD64 | `trinity-linux-amd64.tar.gz` |
| Linux | ARM64 | `trinity-linux-arm64.tar.gz` |
| macOS | AMD64 (Intel) | `trinity-macos-amd64.tar.gz` |
| macOS | ARM64 (Apple Silicon) | `trinity-macos-arm64.tar.gz` |
| Windows | AMD64 | `trinity-windows-amd64.zip` |
### Verification
Verify downloads using `checksums.txt`:
```bash
sha256sum -c checksums.txt
```
### Quick Start
```bash
# Extract archive
tar xzf trinity-<platform>-<arch>.tar.gz
# Run TRI
./tri-<platform>-<arch> --help
# Run VIBEE compiler
./vibee-<platform>-<arch> --help
```
### What's Included
- **TRI** - Unified Trinity CLI (chat, code, pipeline, all commands)
- **VIBEE** - VIBEE compiler (spec → Zig/Verilog)
### Documentation
- [CLI Reference](https://ghashtag.github.io/trinity/docs/api/cli)
- [VIBEE Language](https://ghashtag.github.io/trinity/docs/research/vibee)
- [Architecture](https://ghashtag.github.io/trinity/docs/research/vsa-framework)
fail_on_unmatched_files: false
- name: Upload checksums as artifact
uses: actions/upload-artifact@v4
with:
name: checksums
path: release-assets/checksums.txt