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
45 changes: 34 additions & 11 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"schedule:monthly"
":semanticCommits",
"schedule:monthly",
"group:all"
],
"packageRules": [
{
"description": "One PR a month for all of cargo. `chore` keeps dependency bumps out of the release-plz changelog, which is generated from commit subjects.",
"description": "config:recommended commits cargo dependencies as `fix`, which release-plz lists under Fixed. `chore` lands under Other.",
"matchPackageNames": [
"*"
],
"semanticCommitType": "chore"
},
{
"matchManagers": [
"cargo"
],
"groupName": "cargo dependencies",
"rangeStrategy": "update-lockfile",
"semanticCommitType": "chore"
"rangeStrategy": "update-lockfile"
},
{
"description": "Renovate cannot filter crates by rust-version (constraintsFiltering is python-only), so MSRV bumps must be a deliberate human change, not a side effect of a dependency PR.",
Expand All @@ -22,18 +28,22 @@
"enabled": false
},
{
"description": "Bumping nightly reformats the tree, so the Rustfmt job gates the PR rather than the diff being reviewable.",
"matchDepNames": [
"rust"
"description": "Actions and runners only need bumping when GitHub deprecates them, so they get their own six-monthly group. Security fixes ignore the schedule.",
"matchDepTypes": [
"action",
"github-runner"
],
"commitMessageTopic": "nightly toolchain",
"semanticCommitType": "ci"
"groupName": "CI actions and runners",
"groupSlug": "ci",
"schedule": [
"* 0-3 1 5,11 *"
]
}
],
"customManagers": [
{
"customType": "regex",
"description": "The nightly pin used by the Rustfmt job and cargo doc.",
"description": "The nightly pin used by the Rustfmt job and cargo doc. A new nightly can reformat the tree, so the Rustfmt job may fail the PR until someone runs fmt on its branch.",
"managerFilePatterns": [
"/^\\.github/workflows/ci\\.yml$/"
],
Expand All @@ -43,6 +53,19 @@
"depNameTemplate": "rust",
"datasourceTemplate": "rust-version",
"versioningTemplate": "rust-release-channel"
},
{
"customType": "regex",
"description": "Runner labels in the build matrix. The github-actions manager reads a literal `runs-on`, not `${{ matrix.os }}`.",
"managerFilePatterns": [
"/^\\.github/workflows/ci\\.yml$/"
],
"matchStrings": [
"\\bos:\\s*(?<depName>ubuntu|macos)-(?<currentValue>[0-9][^\\s,}]*)"
],
"depTypeTemplate": "github-runner",
"datasourceTemplate": "github-runners",
"versioningTemplate": "docker"
}
]
}
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ jobs:
# Ubuntu - debug smoke matrix
- { os: ubuntu-24.04, php-version: "8.5", ts: false, debug: true }
# macOS - PHP 8.1+
- { os: macos-14, php-version: "8.1", ts: false, debug: false }
- { os: macos-14, php-version: "8.2", ts: false, debug: false }
- { os: macos-14, php-version: "8.3", ts: false, debug: false }
- { os: macos-14, php-version: "8.4", ts: false, debug: false }
- { os: macos-14, php-version: "8.5", ts: false, debug: false }
- { os: macos-15, php-version: "8.1", ts: false, debug: false }
- { os: macos-15, php-version: "8.2", ts: false, debug: false }
- { os: macos-15, php-version: "8.3", ts: false, debug: false }
- { os: macos-15, php-version: "8.4", ts: false, debug: false }
- { os: macos-15, php-version: "8.5", ts: false, debug: false }

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install libclang for Linux
if: matrix.os == 'ubuntu-24.04'
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y llvm-18-dev libclang-18-dev

- name: Setup PHP
Expand Down
Loading