Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/private-ca-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ jobs:
- name: Run full upstream CI
working-directory: ${{ runner.temp }}/source
run: just ci
- name: Stub Tauri sidecar binaries for test compilation
working-directory: ${{ runner.temp }}/source
run: |
set -euo pipefail
host_triple="$(rustc -vV | sed -n 's/^host: //p')"
mkdir -p desktop/src-tauri/binaries
for sidecar in buzz-acp buzz-agent buzz-dev-mcp git-credential-nostr buzz; do
touch "desktop/src-tauri/binaries/${sidecar}-${host_triple}"
done
- name: Run focused native connector test
working-directory: ${{ runner.temp }}/source
run: cargo test --manifest-path desktop/src-tauri/Cargo.toml native_websocket::tests::native_websocket_platform_tls_connector_is_available
Expand Down
10 changes: 6 additions & 4 deletions scripts/test-private-ca-release-contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ fi

require() {
local expected="$1"
if ! rg --fixed-strings --quiet -- "${expected}" "${workflow}"; then
if ! grep -F -q -- "${expected}" "${workflow}"; then
echo "${workflow} must contain: ${expected}" >&2
exit 1
fi
}

forbid() {
local prohibited="$1"
if rg --ignore-case --fixed-strings --quiet -- "${prohibited}" "${workflow}"; then
if grep -i -F -q -- "${prohibited}" "${workflow}"; then
echo "${workflow} must not contain: ${prohibited}" >&2
exit 1
fi
Expand All @@ -39,6 +39,8 @@ require 'refs/tags/'
require '6d03a38da5e3402bf97df1b3c46152887eb3778e'
require 'cherry-pick --no-commit'
require 'just ci'
require 'Stub Tauri sidecar binaries'
require 'desktop/src-tauri/binaries'
require 'gh issue close'
require 'Local macOS package handoff'
require 'scripts/build-private-ca-macos.sh'
Expand All @@ -60,13 +62,13 @@ if [[ ! -x "${local_builder}" ]]; then
fi

for expected in 'set -euo pipefail' 'createUpdaterArtifacts": false' 'codesign --verify --deep --strict' 'hdiutil create'; do
if ! rg --fixed-strings --quiet -- "${expected}" "${local_builder}"; then
if ! grep -F -q -- "${expected}" "${local_builder}"; then
echo "${local_builder} must contain: ${expected}" >&2
exit 1
fi
done

if rg --ignore-case --fixed-strings --quiet -- 'insecure_skip_verify' "${local_builder}"; then
if grep -i -F -q -- 'insecure_skip_verify' "${local_builder}"; then
echo "${local_builder} must not bypass TLS verification" >&2
exit 1
fi
Expand Down
Loading