File tree Expand file tree Collapse file tree 2 files changed +71
-5
lines changed
Expand file tree Collapse file tree 2 files changed +71
-5
lines changed 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+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ include :
16+ - target : aarch64-apple-darwin
17+ os : macos-latest
18+ name : diskcopilot-cli-aarch64-apple-darwin
19+ - target : x86_64-apple-darwin
20+ os : macos-latest
21+ name : diskcopilot-cli-x86_64-apple-darwin
22+
23+ runs-on : ${{ matrix.os }}
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - uses : dtolnay/rust-toolchain@stable
29+ with :
30+ targets : ${{ matrix.target }}
31+
32+ - name : Build
33+ run : cargo build --release --target ${{ matrix.target }}
34+
35+ - name : Package
36+ run : |
37+ cd target/${{ matrix.target }}/release
38+ tar czf ../../../${{ matrix.name }}.tar.gz diskcopilot-cli
39+ cd ../../..
40+
41+ - uses : actions/upload-artifact@v4
42+ with :
43+ name : ${{ matrix.name }}
44+ path : ${{ matrix.name }}.tar.gz
45+
46+ release :
47+ needs : build
48+ runs-on : ubuntu-latest
49+
50+ steps :
51+ - uses : actions/download-artifact@v4
52+ with :
53+ merge-multiple : true
54+
55+ - name : Create Release
56+ uses : softprops/action-gh-release@v2
57+ with :
58+ generate_release_notes : true
59+ files : |
60+ diskcopilot-cli-aarch64-apple-darwin.tar.gz
61+ diskcopilot-cli-x86_64-apple-darwin.tar.gz
Original file line number Diff line number Diff line change @@ -16,14 +16,19 @@ Designed for two consumers:
1616## Install
1717
1818``` bash
19- # From source
20- cargo install --path .
19+ # One-line install (Apple Silicon)
20+ curl -fsSL https://github.com/bluedusk/diskcopilot-cli/releases/latest/download/diskcopilot-cli-aarch64-apple-darwin.tar.gz | tar xz && sudo mv diskcopilot-cli /usr/local/bin/
2121
22- # Or via Makefile
23- make install
22+ # Intel Mac
23+ curl -fsSL https://github.com/bluedusk/diskcopilot-cli/releases/latest/download/diskcopilot-cli-x86_64-apple-darwin.tar.gz | tar xz && sudo mv diskcopilot-cli /usr/local/bin/
2424```
2525
26- Requires Rust 1.70+.
26+ Or build from source (requires Rust 1.70+):
27+
28+ ``` bash
29+ git clone https://github.com/bluedusk/diskcopilot-cli
30+ cd diskcopilot-cli && make install
31+ ```
2732
2833## Usage
2934
You can’t perform that action at this time.
0 commit comments