File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ env :
12+ CARGO_TERM_COLOR : always
13+
14+ jobs :
15+ build :
16+ strategy :
17+ matrix :
18+ include :
19+ - target : x86_64-unknown-linux-gnu
20+ os : ubuntu-latest
21+ - target : x86_64-apple-darwin
22+ os : macos-latest
23+ - target : aarch64-apple-darwin
24+ os : macos-latest
25+ - target : x86_64-pc-windows-msvc
26+ os : windows-latest
27+
28+ runs-on : ${{ matrix.os }}
29+
30+ steps :
31+ - uses : actions/checkout@v4
32+
33+ - name : Install Rust toolchain
34+ run : rustup target add ${{ matrix.target }}
35+
36+ - name : Build
37+ run : cargo build --release --target ${{ matrix.target }}
38+
39+ - name : Package (unix)
40+ if : runner.os != 'Windows'
41+ run : |
42+ tar czf sofos-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release sofos
43+ zip -j sofos-${{ matrix.target }}.zip target/${{ matrix.target }}/release/sofos
44+
45+ - name : Package (windows)
46+ if : runner.os == 'Windows'
47+ shell : bash
48+ run : 7z a sofos-${{ matrix.target }}.zip ./target/${{ matrix.target }}/release/sofos.exe
49+
50+ - name : Upload artifact
51+ uses : actions/upload-artifact@v4
52+ with :
53+ name : sofos-${{ matrix.target }}
54+ path : sofos-${{ matrix.target }}.*
55+
56+ release :
57+ needs : build
58+ runs-on : ubuntu-latest
59+
60+ steps :
61+ - uses : actions/download-artifact@v4
62+ with :
63+ merge-multiple : true
64+
65+ - name : Create GitHub Release
66+ uses : softprops/action-gh-release@v2
67+ with :
68+ generate_release_notes : true
69+ files : |
70+ sofos-*.tar.gz
71+ sofos-*.zip
Original file line number Diff line number Diff line change @@ -64,7 +64,14 @@ Tested on macOS but should work on Linux and Windows as well.
6464** Install:**
6565
6666``` bash
67- # Homebrew (could be behind `cargo install`)
67+ # Prebuilt binary — download from GitHub Releases:
68+ # https://github.com/alexylon/sofos-code/releases/latest
69+
70+ # macOS / Linux
71+ tar xzf sofos-* .tar.gz
72+ sudo mv sofos /usr/local/bin/
73+
74+ # Homebrew
6875brew tap alexylon/tap && brew install sofos
6976
7077# Cargo (requires Rust 1.70+)
@@ -75,6 +82,8 @@ git clone https://github.com/alexylon/sofos-code.git
7582cd sofos-code && cargo install --path .
7683```
7784
85+ > ** macOS:** On first run, macOS may block the binary. Go to System Settings → Privacy & Security and click * Allow Anyway* .
86+
7887** Important:** Add ` .sofos/ ` to ` .gitignore ` (contains session history and personal settings). Keep ` AGENTS.md ` (team-wide instructions).
7988
8089## Usage
You can’t perform that action at this time.
0 commit comments