Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

ci: phones build on every push to main, and a release says what CI could not vouch for

Jareer5195bb20bed4
diff --git a/.github/release-notes.sh b/.github/release-notes.sh
index 0139c3b0..34534299 100755
--- a/.github/release-notes.sh
+++ b/.github/release-notes.sh
@@ -3,8 +3,14 @@
#
# Usage: release-notes.sh <since-ref> <until-ref> <version>
#
-# Writes markdown to stdout: what changed, then how to download each bundle
-# and the checksum file.
+# Writes markdown to stdout: what changed, what to know before installing,
+# then how to download each bundle and the checksum file.
+#
+# "Before you install" says what the pipeline could not vouch for, so a
+# release never reads as more checked than it was. The caller says which:
+# WINDOWS_SIGNED=false when no certificate signed the Windows bundles, and
+# ANDROID_STARTED=false when no launch check got as far as the APK's own
+# code.
#
# What changed is the subjects of the commits between the two refs,
# filtered as follows.
@@ -75,6 +81,19 @@ if [ -n "$changes" ]; then
echo "$changes"
echo
fi
+caveats=()
+if [ "${WINDOWS_SIGNED:-true}" = false ]; then
+ caveats+=("- **Windows:** this release is not code-signed yet. SmartScreen asks before it runs: **More info** › **Run anyway**. Where Smart App Control is on, Windows refuses unsigned programs; see the [code signing policy](https://github.com/jub0t/concat/blob/main/CODE_SIGNING.md).")
+fi
+if [ "${ANDROID_STARTED:-true}" = false ]; then
+ caveats+=("- **Android:** no automated check has started this APK: CI's emulators run x86_64 and it is built for arm64. If it does not open on your phone, [say so](https://github.com/jub0t/concat/issues).")
+fi
+if [ "${#caveats[@]}" -gt 0 ]; then
+ echo "### Before you install"
+ echo
+ printf '%s\n' "${caveats[@]}"
+ echo
+fi
cat <<'MD'
### Download
diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml
index 324f9301..97525979 100644
--- a/.github/workflows/mobile.yml
+++ b/.github/workflows/mobile.yml
@@ -74,15 +74,24 @@ on:
description: The key's own password; the keystore's when unset
required: false
pull_request:
+ # Every push to main, so main is known to build for phones; a push that
+ # changes only words for people to read builds nothing.
+ push:
+ branches: [main]
+ paths-ignore:
+ - "**.md"
+ - "docs/**"
+ - "audit/**"
+ - "scripts/readme/**"
workflow_dispatch:
# Keyed by the calling workflow too, so a call from a release never shares
-# a group with a pull request's run. Only a pull request's run is
-# superseded by the next push to it; a release's, or one started by hand,
-# runs to the end.
+# a group with a pull request's run. A pull request's run, or a push's, is
+# superseded by the next push; a release's, or one started by hand, runs
+# to the end.
concurrency:
group: mobile-${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
env:
CARGO_TERM_COLOR: always
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fb38e2ae..18c1433d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -167,6 +167,12 @@ jobs:
id: notes
env:
TAG: ${{ needs.check.outputs.tag }}
+ # Whether a certificate signed the Windows bundles: build-app.yml
+ # leaves them unsigned, and says so, when the secret is unset.
+ WINDOWS_SIGNED: ${{ secrets.WINDOWS_CERTIFICATE_PFX != '' }}
+ # No launch check reaches the APK's own code until the emulator
+ # runs a build of it it can execute (see smoke-android.sh).
+ ANDROID_STARTED: "false"
run: |
set -euo pipefail
cd source