-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.02 KB
/
msrv.yml
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
name: Verify MSRV version
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
verify_msrv:
name: Verify MSRV version
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: |
if ! command -v cargo-msrv &> /dev/null
then
cargo install cargo-msrv --locked
fi
- name: Verify MSRV for each package
run: |
for dir in eppo_core rust-sdk ruby-sdk/ext/eppo_rb; do
(cd $dir && cargo msrv verify)
done