-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (47 loc) · 1.48 KB
/
release.yml
File metadata and controls
60 lines (47 loc) · 1.48 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
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout VRAM-HUB source
uses: actions/checkout@v4.2.2
with:
repository: VRAM-AI/VRAM-HUB
ref: feat/vramscan-production
token: ${{ secrets.BUILD_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt-get install -y libssl-dev pkg-config
- uses: actions/cache@v4.2.3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build binary
run: |
cargo build --release --bin vramhub-validator
cp target/release/vramhub-validator vram-validator-linux-x86_64
- name: Release
uses: softprops/action-gh-release@v2.3.2
with:
files: vram-validator-linux-x86_64
body: |
## vram-validator ${{ github.ref_name }}
### One-line install
```bash
curl -sSf https://raw.githubusercontent.com/VRAM-AI/vram-validator/main/install.sh | bash
```
### Manual
```bash
curl -Lo vram-validator \
https://github.com/VRAM-AI/vram-validator/releases/download/${{ github.ref_name }}/vram-validator-linux-x86_64
chmod +x vram-validator && ./vram-validator
```