File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,14 @@ jobs:
66
66
run : |
67
67
set -eux
68
68
[ "${{ matrix.toolchain }}" = "1.63.0" ] && echo 'RUSTFLAGS=' >> "$GITHUB_ENV" || true
69
-
69
+
70
70
- name : Setup Rust toolchain
71
71
run : ./ci/install-rust.sh
72
72
73
+ - name : Install semver-checks
74
+ uses : taiki-e/install-action@cargo-semver-checks
75
+ if : matrix.toolchain == 'stable'
76
+
73
77
# FIXME(ci): These `du` statements are temporary for debugging cache
74
78
- name : Target size before restoring cache
75
79
run : du -sh target | sort -k 2 || true
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set -eux
11
11
12
12
rust=" $TOOLCHAIN "
13
13
filter=" ${FILTER:- } "
14
+ host_target=$( rustc -vV | awk ' /^host/ { print $2 }' )
14
15
15
16
case " $( uname -s) " in
16
17
Linux* ) os=linux ;;
25
26
echo " Testing Rust $rust on $os "
26
27
27
28
if [ " $TOOLCHAIN " = " nightly" ] ; then
29
+ # For build-std
28
30
rustup component add rust-src
29
31
fi
30
32
@@ -107,6 +109,13 @@ test_target() {
107
109
$cmd --no-default-features
108
110
done
109
111
fi
112
+
113
+ # FIXME(semver): can't pass `--target` to `cargo-semver-checks`
114
+ if [ " $rust " = " stable" ] && [ " $target " = " $host_target " ]; then
115
+ # Run semver checks on the stable channel
116
+ cargo semver-checks --only-explicit-features \
117
+ --features std,extra_traits
118
+ fi
110
119
}
111
120
112
121
freebsd_versions=" \
Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ impl TestGenerator {
875
875
let name = format ! ( "lib{stem}.a" ) ;
876
876
877
877
cfg. try_compile ( & name)
878
- . context ( format ! ( "failed to compile `{}`" , name ) )
878
+ . context ( format ! ( "failed to compile `{name }`" ) )
879
879
. map ( |_| out)
880
880
}
881
881
You can’t perform that action at this time.
0 commit comments