Files
fish-shell/updatecli.d/rust.yml
Johannes Altmanninger daadd81ab6 More automation for updating dependencies
- Convert update checks in check.sh to mechanical updates.
  - Use https://www.updatecli.io/ for now, which is not as
    full-featured as renovatebot or dependabot, but I found it easier
    to plug arbitrary shell scripts into.
- Add updaters for
  - ubuntu-latest-lts (which is similar to GitHub Action's "ubuntu-latest").
  - FreeBSD image used in Cirrus (requires "gcloud auth login" for now,
    see https://github.com/cirruslabs/cirrus-ci-docs/issues/1315)
  - littlecheck and widecharwidth
- Update all dependencies except Cargo ones.
- As a reminder, our version policies are arbitrary and can be changed
  as needed.
- To-do:
  - Add updaters for GitHub Actions (such as "actions/checkout").
    Renovatebot could do that.
2025-11-01 12:55:01 +01:00

40 lines
1.2 KiB
YAML

name: "Update Rust versions"
sources:
rust_stable_version:
kind: shell
spec:
shell: bash
command: |
set -eo pipefail
# Check that we have latest stable.
if rustup check | grep ^stable- | grep 'Update available'; then
echo >&2 "Rust toolchain 'stable' is stale, please update it"
exit 1
fi
stable_rust_version=$("$(rustup +stable which rustc)" --version | cut -d' ' -f2)
echo "${stable_rust_version%.*}"
debian_stable_rust_version:
kind: shell
spec:
command: |
build_tools/version-available-in-debian.sh stable rustc
targets:
update_rust_stable:
name: "Update Rust stable"
sourceid: rust_stable_version
kind: file
spec:
file: .github/actions/rust-toolchain/action.yml
matchpattern: '\(stable\) echo \d+\.\d+ ;;.*'
replacepattern: '(stable) echo {{ source "rust_stable_version" }} ;; # updatecli.d/rust.yml'
update_msrv:
name: "Update MSRV"
sourceid: rust_stable_version
kind: file
spec:
file: .github/actions/rust-toolchain/action.yml
matchpattern: '\(msrv\) echo \d+\.\d+ ;;.*'
replacepattern: '(msrv) echo {{ source "debian_stable_rust_version" }} ;; # updatecli.d/rust.yml'