From 4cd2b66495a5d0d4936634f8cce01372cf23f7d8 Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Thu, 15 Oct 2026 15:16:49 +0000 Subject: [PATCH] ci: build the SMP server with the test backend, for SimpleX names The name cases need an SMP server with a [NAMES] resolver on the runner. smp-server comes from the simplexmq source-repository-package (simplexmq:exe:smp-server, buildable without client_library) and goes into the backend zip with the CLI and the directory service. This changes the backend artifact's name, so the next run rebuilds it once. --- scripts/ci/ios-sim/build-backend.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/ci/ios-sim/build-backend.sh b/scripts/ci/ios-sim/build-backend.sh index 0160996161..4ada36f696 100755 --- a/scripts/ci/ios-sim/build-backend.sh +++ b/scripts/ci/ios-sim/build-backend.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Builds the CLI and the directory service that the app job runs as its test backend. +# Builds the CLI, the directory service and the SMP server (for SimpleX names) that the app job runs as its test backend. # Usage: scripts/ci/ios-sim/build-backend.sh # They need the server-capable configuration (no client_library), as build.yml's macOS job builds the CLI. @@ -27,11 +27,12 @@ package direct-sqlcipher extra-lib-dirs: $openssl_dir/lib EOF -cabal build -j exe:simplex-chat exe:simplex-directory-service +targets="exe:simplex-chat exe:simplex-directory-service simplexmq:exe:smp-server" +cabal build -j $targets pkg=$(mktemp -d) -for exe in simplex-chat simplex-directory-service; do - cp "$(cabal list-bin "exe:$exe")" "$pkg" +for target in $targets; do + cp "$(cabal list-bin "$target")" "$pkg" done otool -L "$pkg"/*