From fffb3c6756bcfb59501b274f6e0e7103cd75f05c Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Mon, 29 Dec 2025 22:17:37 +0800 Subject: [PATCH] ci: Update CI/CD for FTXUI architecture - 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 --- .github/workflows/release.yml | 41 ++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1f980e..40793f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,24 +26,31 @@ jobs: if: matrix.os == 'macos-latest' run: | brew update - brew install cmake ncurses curl gumbo-parser + brew install cmake gumbo-parser openssl ftxui cpp-httplib toml11 - name: Install dependencies (Linux) if: matrix.os == 'ubuntu-latest' run: | 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: | - mkdir -p build - cd build - cmake .. + cmake -B build -DCMAKE_PREFIX_PATH=/opt/homebrew -DTUT_BUILD_TESTS=OFF + + - name: Configure CMake (Linux) + if: matrix.os == 'ubuntu-latest' + run: | + cmake -B build -DTUT_BUILD_TESTS=OFF - name: Build project run: | - cd build - cmake --build . + cmake --build build -j$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4) + + - name: Test binary + run: | + ./build/tut --version - name: Rename binary with platform suffix run: | @@ -84,10 +91,28 @@ jobs: body: | 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 - **macOS**: `tut-macos` - **Linux**: `tut-linux` + ## Quick Start + ```bash + chmod +x tut-macos # or tut-linux + ./tut-macos --help + ./tut-macos https://example.com + ``` + ## Build from source See the [README](https://github.com/${{ github.repository }}/blob/main/README.md) for build instructions. files: |