File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,14 @@ jobs:
67
67
run : |
68
68
set -eux
69
69
[ "${{ matrix.toolchain }}" = "1.63.0" ] && echo 'RUSTFLAGS=' >> "$GITHUB_ENV" || true
70
-
70
+
71
71
- name : Setup Rust toolchain
72
72
run : ./ci/install-rust.sh
73
73
74
+ - name : Install semver-checks
75
+ uses : taiki-e/install-action@cargo-semver-checks
76
+ if : matrix.toolchain == 'stable'
77
+
74
78
# FIXME(ci): These `du` statements are temporary for debugging cache
75
79
- name : Target size before restoring cache
76
80
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
@@ -108,6 +110,13 @@ test_target() {
108
110
$cmd --no-default-features
109
111
done
110
112
fi
113
+
114
+ # FIXME(semver): can't pass `--target` to `cargo-semver-checks`
115
+ if [ " $rust " = " stable" ] && [ " $target " = " $host_target " ]; then
116
+ # Run semver checks on the stable channel
117
+ cargo semver-checks --only-explicit-features \
118
+ --features std,extra_traits
119
+ fi
111
120
}
112
121
113
122
freebsd_versions=" \
You can’t perform that action at this time.
0 commit comments