File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ concurrency:
13
13
cancel-in-progress : true
14
14
15
15
jobs :
16
+ read_msrv :
17
+ name : Read MSRV
18
+ uses : actions-rust-lang/msrv/.github/workflows/msrv.yml@main
19
+
16
20
build_and_test :
21
+ needs :
22
+ - read_msrv
23
+
17
24
strategy :
18
25
fail-fast : false
19
26
matrix :
24
31
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
25
32
- { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu }
26
33
version :
27
- - { name: msrv, version: 1.70.0 }
34
+ - { name: msrv, version: "${{ needs.read_msrv.outputs.msrv }}" }
28
35
- { name: stable, version: stable }
29
36
30
37
name : ${{ matrix.target.name }} / ${{ matrix.version.name }}
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ all_crate_features := if os() == "linux" {
27
27
" --features='" + non_linux_all_features_list + " '"
28
28
}
29
29
30
+ m :
31
+ cargo metadata --format-version=1 \
32
+ | jq -r ' first(.packages[] | select(.source == null)) | .rust_version' \
33
+ | sed -E ' s/^1\.([0-9]{2})$/1\.\1\.0/' \
34
+ | xargs -0 printf " msrv=%s" \
35
+ | tee / dev/ stderr
36
+
30
37
# Test workspace code.
31
38
test toolchain = " ":
32
39
cargo {{ toolchain }} test --lib --tests --package=actix-macros
You can’t perform that action at this time.
0 commit comments