From 4cd0da988f9983d09497a57520fd65304954d087 Mon Sep 17 00:00:00 2001 From: softmaxe <94467584+softmaxe@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:04:58 +0800 Subject: [PATCH 1/3] ci: run Check on pull requests only and drop the path filter Main only takes squash merges behind the up-to-date required check, so the push run re-tested code that had already passed. The docs-only path filter saved about 40 seconds on free macOS runners at the cost of a second job and a gh api script. --- .github/workflows/ci.yml | 45 ++-------------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d5cff7..8e7e7e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,18 +1,9 @@ name: CI on: - # No paths-ignore here: "Check" is a required check, so it must report on every - # pull request. Docs-only pull requests skip the job instead (see `changes`). + # Pull requests only: "Check" is a required check with the up-to-date policy, and main + # only takes squash merges, so every commit on main has already passed it. pull_request: - push: - branches: - - main - paths-ignore: - - "**.md" - - "docs/**" - - "assets/**" - - "raycast/**" - - "demo.tape" permissions: contents: read @@ -26,40 +17,8 @@ env: MACOSX_DEPLOYMENT_TARGET: "11.0" jobs: - changes: - name: Detect changes - if: github.event_name == 'pull_request' - runs-on: ubuntu-24.04 - timeout-minutes: 5 - permissions: - pull-requests: read - outputs: - code: ${{ steps.filter.outputs.code }} - steps: - # Only GitHub-owned actions are allowed in this repository, so filter with the gh CLI. - - name: Filter changed paths - id: filter - shell: bash - env: - GH_TOKEN: ${{ github.token }} - PR_NUMBER: ${{ github.event.pull_request.number }} - run: | - files=$(gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/files" --jq '.[].filename') - code=false - while IFS= read -r file; do - case "$file" in - *.md | docs/* | assets/* | raycast/* | demo.tape | "") ;; - *) code=true ;; - esac - done <<< "$files" - echo "code=$code" >> "$GITHUB_OUTPUT" - check: name: Check - needs: changes - # A skipped job still satisfies the required check, so docs-only pull requests can merge. - # Skip only when the filter ran and found no code changes; any other outcome runs the checks. - if: ${{ !cancelled() && !(needs.changes.result == 'success' && needs.changes.outputs.code == 'false') }} # macos-15 is arm64, so the host target is the only one gbat ships. runs-on: macos-15 timeout-minutes: 15 From ec724af593e1fabe8a2b58fe079b1b87e5e0f1e8 Mon Sep 17 00:00:00 2001 From: softmaxe <94467584+softmaxe@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:04:58 +0800 Subject: [PATCH 2/3] ci(release): skip tests in the release build The tag must point at main, and every commit on main has passed Check. --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5c27db..9e248f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,11 +68,9 @@ jobs: echo "tag=$tag" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT" - - name: Test and build - run: | - set -euo pipefail - cargo test --locked - cargo build --release --locked + # No tests here: the tag must point at main, and every commit on main passed "Check". + - name: Build + run: cargo build --release --locked - name: Verify and package binary id: package From c19537b9d8fc4d9a979b8f46bfc6b269eec60695 Mon Sep 17 00:00:00 2001 From: softmaxe <94467584+softmaxe@users.noreply.github.com> Date: Thu, 15 Oct 2026 14:04:58 +0800 Subject: [PATCH 3/3] ci(dependabot): wait 7 days before adopting new releases --- .github/dependabot.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 672d981..fe45601 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,9 @@ updates: directory: / schedule: interval: monthly + # Let new releases age before adopting them, so a compromised version is likely yanked first. + cooldown: + default-days: 7 groups: github-actions: patterns: ["*"] @@ -14,6 +17,9 @@ updates: directory: / schedule: interval: monthly + # Let new releases age before adopting them, so a compromised version is likely yanked first. + cooldown: + default-days: 7 groups: cargo: patterns: ["*"]