File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 55 branches : [main]
66 pull_request :
77
8- env :
9- RUSTFLAGS : -D warnings
10-
118jobs :
129
1310 complete :
@@ -28,14 +25,27 @@ jobs:
2825 build-and-test :
2926 strategy :
3027 matrix :
28+ rust : [msrv, latest]
3129 include :
3230 - os : ubuntu-latest
3331 target : x86_64-unknown-linux-gnu
3432 runs-on : ${{ matrix.os }}
3533 steps :
3634 - uses : actions/checkout@v3
3735 - uses : stellar/actions/rust-cache@main
36+ - name : Use the minimum supported Rust version
37+ if : matrix.rust == 'msrv'
38+ run : |
39+ msrv="$(cargo metadata --format-version 1 --no-deps | jq -r '.packages | map(.rust_version) | map(values) | min')"
40+ rustup override set $msrv
41+ rustup component add clippy --toolchain $msrv
42+ - name : Error on warnings and clippy checks
43+ # Only error on warnings and checks for the msrv, because new versions of
44+ # Rust will frequently add new warnings and checks.
45+ if : matrix.rust == 'msrv'
46+ run : echo RUSTFLAGS='-Dwarnings' >> $GITHUB_ENV
3847 - run : rustup update
48+ - run : cargo version
3949 - run : cargo build --target ${{ matrix.target }}
4050 - run : cargo test --target ${{ matrix.target }}
4151
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ license = "Apache-2.0"
88readme = " README.md"
99version = " 0.0.8"
1010edition = " 2021"
11- rust-version = " 1.67"
11+ rust-version = " 1.67.0 "
1212
1313[features ]
1414default = []
You can’t perform that action at this time.
0 commit comments