Files
simplex-chat/scripts/ci/desktop-linux/build-backend.sh
T
spacedandy-agents-simplex 5f48972d7d ci: run a test directory with a group and a channel on the desktop app runner
A backend job builds the CLI and the directory service without client_library, reused across runs as an artifact named by its sources (plan job, as on the iOS lane). The app job starts a relay and the directory on the preset servers, registers and approves ci_group and ci_channel from a CLI admin, and checks that a search request from a fresh client finds both. The app is not pointed at it yet; its build and desktopTest still run when the backend fails.
2026-10-15 11:28:56 +00:00

34 lines
819 B
Bash
Executable File

#!/bin/bash
# Builds the CLI and the directory service that the app job runs as its test backend.
# Usage: scripts/ci/desktop-linux/build-backend.sh <output .tar.gz>
# They need the server-capable configuration (no client_library), as build.yml's Linux job builds the CLI.
set -euo pipefail
mkdir -p "$(dirname "$1")"
out="$(cd "$(dirname "$1")" && pwd)/$(basename "$1")"
ghc --version
cabal --version
du -sh ~/.cabal/store dist-newstyle 2> /dev/null || true
cat > cabal.project.local << EOF
ignore-project: False
jobs: \$ncpus
package direct-sqlcipher
flags: +openssl
EOF
cabal build exe:simplex-chat exe:simplex-directory-service
pkg=$(mktemp -d)
for exe in simplex-chat simplex-directory-service; do
cp "$(cabal list-bin "exe:$exe")" "$pkg"
done
ldd "$pkg"/*
tar -C "$pkg" -czf "$out" .
ls -la "$out"