Portable Multi-Platform CI (bark-ci)

Bark CI is completely platform-agnostic. Your repository, source code, and private signing key (pub.sk) stay strictly inside your own CI runner. bark-ci builds, verifies, and pushes only signed, encrypted packages to https://tty.pt/bark/partner/publish and stages branded native launchers in dist/ for you to publish on your own release host.

Required CI Secrets

SecretSource
BARK_PUBLISH_TOKENScoped CI Publish token minted in /bark/portal
BARK_PUB_SK_B64Base64-encoded Ed25519 pub.sk (never uploaded to tty.pt)

GitHub Actions

CI targets: web, linux-x64 (ubuntu-24.04, production-verified), plus macos-arm64 (macos-15) and win64 (windows-latest) via the reusable 3-OS workflow (ci/bark-release.yml, fetching per-OS SDKs via ?os=linux|darwin|windows).
name: Release
on:
  push:
    tags: ["v*"]
  workflow_dispatch:

jobs:
  release:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - name: Install native + WASM32 build prerequisites
        run: |
          sudo apt-get update -qq
          sudo apt-get install -y --no-install-recommends \
            build-essential ca-certificates curl pkg-config \
            clang-18 lld-18 wasi-libc libclang-rt-18-dev-wasm32 wabt binaryen \
            libssl-dev libxxhash-dev libzstd1 libcurl4-gnutls-dev \
            libglew-dev libglfw3-dev libgl-dev libegl-dev \
            libfreetype-dev libpng-dev libvulkan1 libopus-dev libasound2-dev
      - name: Install Bark SDK
        env:
          BARK_PUBLISH_TOKEN: ${{ secrets.BARK_PUBLISH_TOKEN }}
        run: |
          curl -fsSL -H "Authorization: Bearer $BARK_PUBLISH_TOKEN" \
            "https://tty.pt/bark/portal/sdk?os=linux&arch=x86_64" -o /tmp/bark-sdk.tar.gz
          tar -xzf /tmp/bark-sdk.tar.gz -C /tmp
          sh /tmp/bark-sdk/install.sh "$HOME/.local"
          echo "$HOME/.local/bin" >> "$GITHUB_PATH"
          echo "PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig" >> "$GITHUB_ENV"
          echo "LD_LIBRARY_PATH=$HOME/.local/lib" >> "$GITHUB_ENV"
      - name: Build, audit, and publish encrypted packages
        env:
          BARK_PUB_SK_B64: ${{ secrets.BARK_PUB_SK_B64 }}
          BARK_PUBLISH_TOKEN: ${{ secrets.BARK_PUBLISH_TOKEN }}
          BARK_LEASE_URL: https://tty.pt
          # Choose any subset of: web linux-x64 macos-arm64 win64
          BARK_TARGETS: web linux-x64
          # Optional app-specific Make flags:
          # BARK_MAKE_ARGS: "MY_BACKEND=cloudflare"
        run: bark-ci
      - uses: actions/upload-artifact@v4
        with:
          name: dist
          path: dist/

For multi-OS desktop releases (web, linux-x64, macos-arm64, win64), use the bundled reusable workflow ci/bark-release.yml, which fans out across ubuntu-24.04, macos-15, and windows-latest based on inputs.targets and uploads per-OS dist/ artifacts (.exe, .dmg, .msi, .app, and signed encrypted packages).

GitLab CI / Forgejo / Local Shell / Container

Run the exact same commands in any POSIX shell container (or build a reusable builder image from share/bark/Dockerfile.builder included in the SDK):

curl -fsSL -H "Authorization: Bearer $BARK_PUBLISH_TOKEN" \
  "https://tty.pt/bark/portal/sdk?os=linux&arch=x86_64" -o /tmp/bark-sdk.tar.gz
tar -xzf /tmp/bark-sdk.tar.gz -C /tmp
sh /tmp/bark-sdk/install.sh "$HOME/.local"
export PATH="$HOME/.local/bin:$PATH"
export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
export LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}"
BARK_LEASE_URL=https://tty.pt BARK_TARGETS="web linux-x64" bark-ci

To verify a release locally without uploading, pass BARK_DRY_RUN=1 bark-ci.