-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.34 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
44
45
46
47
48
49
50
51
52
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@v4
with:
submodules: true
- 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: Override eppo_core for testing against local version
run: |
mkdir -p ~/.cargo/
echo "[patch.crates-io.eppo_core]" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"
echo "path = '$PWD/eppo_core'" >> "${CARGO_HOME:-$HOME/.cargo}/config.toml"
- name: Verify MSRV for each package
run: |
for dir in eppo_core rust-sdk ruby-sdk/ext/eppo_client; do
(cd $dir && cargo msrv verify)
done