-
Notifications
You must be signed in to change notification settings - Fork 0
140 lines (118 loc) 路 3.67 KB
/
Copy pathrelease.yml
File metadata and controls
140 lines (118 loc) 路 3.67 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
name: Build and Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
BINARY_NAME: rax
jobs:
build:
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev pkg-config
- name: Build release binary
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- name: Build .deb package
run: |
chmod +x build-deb.sh
./build-deb.sh
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: rax-linux-amd64
path: target/release/rax
retention-days: 30
- name: Upload deb artifact
uses: actions/upload-artifact@v4
with:
name: rax-deb-package
path: rax_*.deb
retention-days: 30
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download binary artifact
uses: actions/download-artifact@v4
with:
name: rax-linux-amd64
path: ./artifacts
- name: Download deb artifact
uses: actions/download-artifact@v4
with:
name: rax-deb-package
path: ./artifacts
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
files: |
./artifacts/rax
./artifacts/rax_*.deb
body: |
## 馃殌 Rax CLI ${{ github.ref_name }}
### Installation
#### Option 1: Using apt (Recommended)
```bash
# Add the repository
curl -fsSL https://raxcore-dev.github.io/rax-offline-cli/repo.key | sudo gpg --dearmor -o /usr/share/keyrings/rax-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/rax-archive-keyring.gpg] https://raxcore-dev.github.io/rax-offline-cli/ /" | sudo tee /etc/apt/sources.list.d/rax.list
sudo apt update
sudo apt install rax
```
#### Option 2: Direct download
```bash
# Download and install the .deb package
wget https://github.com/Raxcore-dev/rax-offline-cli/releases/download/${{ github.ref_name }}/rax_*.deb
sudo apt install ./rax_*.deb
```
#### Option 3: Binary
```bash
# Download and run directly
wget https://github.com/Raxcore-dev/rax-offline-cli/releases/download/${{ github.ref_name }}/rax
chmod +x rax
./rax
```
### What's New
- Automated build with GitHub Actions
- Official apt repository support
- Improved first-run experience
- Persistent chat history
### Features
- 馃 Claude Code-style interface
- 馃捑 Auto-saving chat history
- 馃搧 Project context awareness
- 馃帹 Beautiful TUI mode
- 馃敀 100% offline AI