Skip to content

Commit 89d9b48

Browse files
Userclaude
andcommitted
ci: build binary from public VRAM-HUB source, no token needed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2451bc1 commit 89d9b48

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout VRAM-HUB (public source)
18+
uses: actions/checkout@v4
19+
with:
20+
repository: VRAM-AI/VRAM-HUB
21+
ref: master
22+
23+
- uses: dtolnay/rust-toolchain@stable
24+
with:
25+
targets: x86_64-unknown-linux-musl
26+
27+
- run: sudo apt-get install -y musl-tools
28+
29+
- uses: actions/cache@v4
30+
with:
31+
path: |
32+
~/.cargo/registry
33+
~/.cargo/git
34+
target
35+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
36+
37+
- name: Build static binary
38+
run: |
39+
cargo build --release --bin vramhub-validator \
40+
--target x86_64-unknown-linux-musl
41+
cp target/x86_64-unknown-linux-musl/release/vramhub-validator \
42+
vram-validator-linux-x86_64
43+
44+
- name: Release
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
files: vram-validator-linux-x86_64
48+
body: |
49+
## vram-validator ${{ github.ref_name }}
50+
51+
### One-line install
52+
53+
```bash
54+
curl -sSf https://raw.githubusercontent.com/VRAM-AI/vram-validator/main/install.sh | bash
55+
```
56+
57+
### Manual
58+
59+
```bash
60+
curl -Lo vram-validator \
61+
https://github.com/VRAM-AI/vram-validator/releases/download/${{ github.ref_name }}/vram-validator-linux-x86_64
62+
chmod +x vram-validator && ./vram-validator
63+
```

0 commit comments

Comments
 (0)