Skip to content

chore: bump version to 0.1.2 to align with latest release #6

chore: bump version to 0.1.2 to align with latest release

chore: bump version to 0.1.2 to align with latest release #6

Workflow file for this run

name: Build Linux AppImage
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Linux System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get install -y build-essential cmake libopenblas-dev wget git
- name: Compile C++ Backend (Parakeet patched for AI4Bharat)
run: |
git clone --recursive https://github.com/mudler/parakeet.cpp.git
cd parakeet.cpp
# Apply the architectural patch for Indic models (bypassing strict CPU assertions)
sed -i 's/if (factor == 4)/if (true)/g' src/subsampling.cpp
mkdir -p build && cd build
cmake .. -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
make -j$(nproc)
- name: Prepare Tauri Sidecars for Linux
run: |
# Find the compiled parakeet-cli executable
CLI_PATH=$(find parakeet.cpp/build -name parakeet-cli -type f -executable | head -n 1)
echo "Found CLI at: $CLI_PATH"
cd src-tauri/bin
# 1. Copy the compiled parakeet engine with the correct Linux target suffix
cp "../../$CLI_PATH" parakeet-cli-x86_64-unknown-linux-gnu
# 2. Mock the Vulkan CLI (not used by default on this action but required by tauri.conf)
cp parakeet-cli-x86_64-unknown-linux-gnu parakeet-cli-vulkan-x86_64-unknown-linux-gnu
# 3. Download static Linux FFmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
tar xvf ffmpeg-release-amd64-static.tar.xz
cp ffmpeg-*-amd64-static/ffmpeg ffmpeg-x86_64-unknown-linux-gnu
chmod +x ffmpeg-x86_64-unknown-linux-gnu
# 4. Create dummy .dll files so Tauri doesn't crash when reading the 'resources' block
touch ggml.dll ggml-base.dll ggml-cpu.dll ggml-cuda.dll ggml-vulkan.dll
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- name: Install Frontend Dependencies
run: npm install
- name: Build Tauri Frontend (AppImage)
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__
releaseName: "RenderCaption Linux Release v__VERSION__"
releaseBody: "Automated Linux AppImage build."
releaseDraft: true
prerelease: false