File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,14 @@ jobs:
6767 run : |
6868 set -eux
6969 [ "${{ matrix.toolchain }}" = "1.63.0" ] && echo 'RUSTFLAGS=' >> "$GITHUB_ENV" || true
70-
70+
7171 - name : Setup Rust toolchain
7272 run : ./ci/install-rust.sh
7373
74+ - name : Install semver-checks
75+ uses : taiki-e/install-action@cargo-semver-checks
76+ if : matrix.toolchain == 'stable'
77+
7478 # FIXME(ci): These `du` statements are temporary for debugging cache
7579 - name : Target size before restoring cache
7680 run : du -sh target | sort -k 2 || true
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set -eux
1111
1212rust=" $TOOLCHAIN "
1313filter=" ${FILTER:- } "
14+ host_target=$( rustc -vV | awk ' /^host/ { print $2 }' )
1415
1516case " $( uname -s) " in
1617 Linux* ) os=linux ;;
2526echo " Testing Rust $rust on $os "
2627
2728if [ " $TOOLCHAIN " = " nightly" ] ; then
29+ # For build-std
2830 rustup component add rust-src
2931fi
3032
@@ -69,7 +71,6 @@ test_target() {
6971
7072 # Test with expected combinations of features
7173 $cmd
72- $cmd --features const-extern-fn
7374 $cmd --features extra_traits
7475
7576 if [ " $os " = " linux" ]; then
@@ -108,6 +109,13 @@ test_target() {
108109 $cmd --no-default-features
109110 done
110111 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
111119}
112120
113121freebsd_versions=" \
You can’t perform that action at this time.
0 commit comments