Skip to content

Commit 03f1878

Browse files
committed
Add README for Homebrew tap and auto-deploy it
- Create packaging/homebrew/README.md with user-friendly tap documentation - Update deploy-tap.yml to copy README to tap repository - README includes installation, quick start, usage, and documentation links - Low-maintenance design that stays current automatically
1 parent 278ea8c commit 03f1878

File tree

2 files changed

+64
-3
lines changed

2 files changed

+64
-3
lines changed

.github/workflows/deploy-tap.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ jobs:
7979
git push -u origin main
8080
fi
8181
82-
- name: Copy formula into tap
82+
- name: Copy formula and README into tap
8383
run: |
8484
mkdir -p tap-repo/Formula
8585
cp packaging/homebrew/mfc.rb tap-repo/Formula/mfc.rb
86+
cp packaging/homebrew/README.md tap-repo/README.md
8687
8788
- name: Commit & push if changed
8889
env:
8990
TAP_TOKEN: ${{ secrets.TAP_REPO_TOKEN }}
9091
run: |
9192
cd tap-repo
92-
git add Formula/mfc.rb
93+
git add Formula/mfc.rb README.md
9394
if git diff --cached --quiet; then
94-
echo "No changes in Formula/mfc.rb; skipping push."
95+
echo "No changes in Formula/mfc.rb or README.md; skipping push."
9596
exit 0
9697
fi
9798
git -c user.name="github-actions[bot]" -c user.email="github-actions[bot]@users.noreply.github.com" \

packaging/homebrew/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# MFC Homebrew Tap
2+
3+
Official Homebrew tap for [MFC (Multiphase Flow Code)](https://github.com/MFlowCode/MFC) – an exascale multiphase/multiphysics compressible flow solver.
4+
5+
## Installation
6+
7+
```bash
8+
brew install mflowcode/mfc/mfc
9+
```
10+
11+
## Quick Start
12+
13+
Run the 1D Sod shock tube example:
14+
15+
```bash
16+
mkdir -p ~/mfc_example && cd ~/mfc_example
17+
cp $(brew --prefix mfc)/examples/1D_sodshocktube/case.py .
18+
mfc run case.py -n 2
19+
```
20+
21+
## What's Included
22+
23+
- **Prebuilt binaries**: `pre_process`, `simulation`, `post_process`
24+
- **Python toolchain**: Pre-configured virtual environment with all dependencies (including Cantera)
25+
- **Examples**: Located at `$(brew --prefix mfc)/examples/`
26+
- **`mfc` wrapper**: Simplified command-line interface for running cases
27+
28+
## Usage
29+
30+
```bash
31+
mfc run <case.py> -n <processes>
32+
```
33+
34+
Use `-n X` to set the number of MPI processes.
35+
36+
**Note**: The Homebrew wrapper supports only `mfc run`. For developer commands (`build`, `test`, `clean`, etc.), [clone the repository](https://github.com/MFlowCode/MFC) and use `./mfc.sh`.
37+
38+
## Documentation
39+
40+
- [MFC Documentation](https://mflowcode.github.io/)
41+
- [Getting Started Guide](https://mflowcode.github.io/documentation/md_getting-started.html)
42+
- [Running Cases](https://mflowcode.github.io/documentation/md_running.html)
43+
44+
## About This Tap
45+
46+
This tap is automatically maintained by the [MFC repository](https://github.com/MFlowCode/MFC) via GitHub Actions. The formula is synced from [`packaging/homebrew/mfc.rb`](https://github.com/MFlowCode/MFC/blob/master/packaging/homebrew/mfc.rb).
47+
48+
For issues or contributions related to the Homebrew formula, please visit the [main MFC repository](https://github.com/MFlowCode/MFC).
49+
50+
## Uninstall
51+
52+
```bash
53+
brew uninstall mfc
54+
brew untap mflowcode/mfc
55+
```
56+
57+
## License
58+
59+
MFC is licensed under the [MIT License](https://github.com/MFlowCode/MFC/blob/master/LICENSE).
60+

0 commit comments

Comments
 (0)