Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

ci: cut redundant work from pull request and release runs

leepokai7174a83d6dea
diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml
index 25af2f52..bcf8e42f 100644
--- a/.github/workflows/cloud.yml
+++ b/.github/workflows/cloud.yml
@@ -4,6 +4,11 @@ on:
pull_request:
paths: ["cloud/**", "relay/**", "docs/reference/fixtures/remote-relay-vectors.json", ".github/workflows/cloud.yml"]
+# A newer push to the same PR supersedes the run in progress; tag runs always finish.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
cloud:
runs-on: ubuntu-latest
diff --git a/.github/workflows/host.yml b/.github/workflows/host.yml
index 99331408..c9fe879e 100644
--- a/.github/workflows/host.yml
+++ b/.github/workflows/host.yml
@@ -6,8 +6,15 @@ on:
pull_request:
paths: ["host/**", "packaging/updates/**", "docs/reference/fixtures/remote-relay-vectors.json", ".github/workflows/host.yml"]
+# A newer push to the same PR supersedes the run in progress; tag runs always finish.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
+ # Tags ship a commit its PR already tested.
test:
+ if: github.event_name == 'pull_request'
strategy:
matrix:
# Windows hosts ship inside the desktop app (release-desktop.yml), so no release archive below.
@@ -29,7 +36,6 @@ jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
- needs: test
strategy:
matrix:
include:
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml
index 028326e0..f3093959 100644
--- a/.github/workflows/kit.yml
+++ b/.github/workflows/kit.yml
@@ -5,6 +5,11 @@ on:
pull_request:
paths: ["apps/ios/Kit/**", "docs/reference/fixtures/remote-relay-vectors.json", ".github/workflows/kit.yml"]
+# A newer push to the same PR supersedes the run in progress; tag runs always finish.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
test:
runs-on: macos-latest
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 65166d07..6a2b18f9 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -1,7 +1,8 @@
name: Release desktop
# The Electron app (apps/desktop) for macOS, Linux and Windows. A v* tag publishes it; anything else is a
-# dry run that builds, signs and notarizes but publishes nothing.
+# dry run that builds and signs but publishes nothing. Notarizing (minutes of waiting on Apple) runs on
+# tags and on release PRs into main, so a notarization problem still shows before the tag.
on:
push:
tags: ["v*"]
@@ -12,6 +13,11 @@ on:
permissions:
contents: write
+# A newer push to the same PR supersedes the run in progress; tag runs always finish.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
+
jobs:
check:
runs-on: ubuntu-latest
@@ -49,6 +55,9 @@ jobs:
- name: Install Rust (rust-toolchain.toml)
run: rustup toolchain install
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
+ - uses: Swatinem/rust-cache@v2
+ with:
+ workspaces: host
- name: Install Apple certificate
env:
@@ -86,9 +95,10 @@ jobs:
# Same-repo PRs get the secrets; sign them too so the dry run checks the real app.
CSC_FOR_PULL_REQUEST: "true"
# Notarized with the App Store Connect API key: unlike an app-specific password, it
- # survives Apple ID password changes.
+ # survives Apple ID password changes. Without the key ID electron-builder skips notarizing.
+ NOTARIZE: ${{ github.event_name != 'pull_request' || github.base_ref == 'main' }}
APPLE_API_KEY: ${{ runner.temp }}/AuthKey.p8
- APPLE_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
+ APPLE_API_KEY_ID: ${{ (github.event_name != 'pull_request' || github.base_ref == 'main') && secrets.ASC_KEY_ID || '' }}
APPLE_API_ISSUER: ${{ secrets.ASC_ISSUER_ID }}
ASC_PRIVATE_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
run: |
@@ -98,7 +108,7 @@ jobs:
npm run dist:mac:main -- --publish never
codesign -d --entitlements - dist/mac-universal/Codync.app | grep -q com.apple.security.device.audio-input ||
{ echo "audio-input entitlement missing"; exit 1; }
- spctl --assess --type execute -v dist/mac-universal/Codync.app
+ if [ "$NOTARIZE" = true ]; then spctl --assess --type execute -v dist/mac-universal/Codync.app; fi
- name: Update feeds
env: