Skip to content

Commit 953ec93

Browse files
blueduskclaude
andcommitted
ci: add GitHub Actions release pipeline for macOS binaries
Builds aarch64 + x86_64 binaries on tag push, publishes to GitHub Releases. Update README with one-line install from releases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 309e538 commit 953ec93

File tree

2 files changed

+71
-5
lines changed

2 files changed

+71
-5
lines changed

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)