ci: Update CI/CD for FTXUI architecture
Some checks failed
Build and Release / build (linux, ubuntu-latest) (push) Has been cancelled
Build and Release / build (macos, macos-latest) (push) Has been cancelled
Build and Release / release (push) Has been cancelled

- Install FTXUI, cpp-httplib, toml11 dependencies
- Use CMAKE_PREFIX_PATH for macOS Homebrew packages
- Add binary version test step
- Improve release notes with features and quick start
- Support both macOS and Linux builds with FetchContent fallback
This commit is contained in:
m1ngsama 2025-12-29 22:17:37 +08:00
parent 6408f0e95c
commit fffb3c6756

View file

@ -26,24 +26,31 @@ jobs:
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: | run: |
brew update brew update
brew install cmake ncurses curl gumbo-parser brew install cmake gumbo-parser openssl ftxui cpp-httplib toml11
- name: Install dependencies (Linux) - name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake libncursesw5-dev libcurl4-openssl-dev libgumbo-dev sudo apt-get install -y cmake libgumbo-dev libssl-dev pkg-config g++
- name: Configure CMake - name: Configure CMake (macOS)
if: matrix.os == 'macos-latest'
run: | run: |
mkdir -p build cmake -B build -DCMAKE_PREFIX_PATH=/opt/homebrew -DTUT_BUILD_TESTS=OFF
cd build
cmake .. - name: Configure CMake (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
cmake -B build -DTUT_BUILD_TESTS=OFF
- name: Build project - name: Build project
run: | run: |
cd build cmake --build build -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
cmake --build .
- name: Test binary
run: |
./build/tut --version
- name: Rename binary with platform suffix - name: Rename binary with platform suffix
run: | run: |
@ -84,10 +91,28 @@ jobs:
body: | body: |
Automated release for commit ${{ github.sha }} Automated release for commit ${{ github.sha }}
🎉 **TUT - Terminal UI Textual Browser**
A lightweight terminal browser with btop-style interface built with FTXUI.
## Features
- 🎨 btop-style four-panel layout
- ⚡ Fast and lightweight (~827KB binary)
- ⌨️ Vim-style keyboard navigation
- 🎭 Multiple color themes
- 📝 TOML-based configuration
## Download ## Download
- **macOS**: `tut-macos` - **macOS**: `tut-macos`
- **Linux**: `tut-linux` - **Linux**: `tut-linux`
## Quick Start
```bash
chmod +x tut-macos # or tut-linux
./tut-macos --help
./tut-macos https://example.com
```
## Build from source ## Build from source
See the [README](https://github.com/${{ github.repository }}/blob/main/README.md) for build instructions. See the [README](https://github.com/${{ github.repository }}/blob/main/README.md) for build instructions.
files: | files: |