File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1313 RUSTDOCFLAGS : -Dwarnings
1414 RUSTFLAGS : -Dwarnings
1515 RUST_BACKTRACE : full
16+ # Skip semver checks if specified. This implementation is a bit crude but
17+ # seems to work.
18+ SEMVER_CHECKS : >
19+ ${{ contains(github.event.pull_request.bodyText, '\nci: ignore-semver')
20+ && 'ignore' || 'check' }}
1621
1722defaults :
1823 run :
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ run() {
4343 --user " $( id -u) " :" $( id -g) " \
4444 --env LIBC_CI \
4545 --env LIBC_CI_ZBUILD_STD \
46+ --env SEMVER_CHECKS \
4647 --env RUST_LIBC_UNSTABLE_GNU_FILE_OFFSET_BITS \
4748 --env RUST_LIBC_UNSTABLE_GNU_TIME_BITS \
4849 --env CARGO_HOME=/cargo \
Original file line number Diff line number Diff line change @@ -113,8 +113,13 @@ test_target() {
113113 # FIXME(semver): can't pass `--target` to `cargo-semver-checks`
114114 if [ " $rust " = " stable" ] && [ " $target " = " $host_target " ]; then
115115 # Run semver checks on the stable channel
116- cargo semver-checks --only-explicit-features \
117- --features std,extra_traits
116+ cmd=" cargo semver-checks --only-explicit-features --features std,extra_traits"
117+
118+ if [ " $SEMVER_CHECKS " = " ignore" ]; then
119+ $cmd || true
120+ else
121+ $cmd
122+ fi
118123 fi
119124}
120125
You can’t perform that action at this time.
0 commit comments