forked from GitoxideLabs/gitoxide
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.38 KB
/
msrv.yml
File metadata and controls
49 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Minimum Supported Rust Version
on:
push:
branches:
- main
- 'run-ci/**'
- '**/run-ci/**'
tags-ignore:
- '*'
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
check-msrv:
name: cargo check MSRV
strategy:
matrix:
os:
- windows-2022
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
# This is dictated by `firefox` to support the `helix` editor, but now probably effectively
# be controlled by `jiff`, which also aligns with `regex`.
# IMPORTANT: When adjusting, change all occurrences in `etc/msrv-badge.svg` as well.
RUST_VERSION: 1.75.0
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v3
- name: Set up ${{ env.RUST_VERSION }} (MSRV) and nightly toolchains
run: rustup toolchain install ${{ env.RUST_VERSION }} nightly --profile minimal --no-self-update
- name: Set ${{ env.RUST_VERSION }} (MSRV) as default
run: rustup default ${{ env.RUST_VERSION }}
- name: Downgrade locked dependencies to lowest allowed versions
run: |
# TODO(msrv): Use `cargo update --minimal-versions` when `--minimal-versions` is available.
cargo +nightly update -Zminimal-versions
- name: Run some `cargo build` commands on `gix`
run: just ci-check-msrv