Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add pest_debugger to semver checks #741

Merged
merged 1 commit into from Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -139,7 +139,7 @@ jobs:
with:
kind: check
components: rust-src
toolchain: nightly-2022-07-01 # upgrade this regularly
toolchain: nightly-2022-11-20 # upgrade this regularly
- name: check no_std compatibility
run: cd pest && cargo build -j1 -Z build-std=core,alloc --no-default-features --target x86_64-unknown-linux-gnu

Expand All @@ -155,7 +155,7 @@ jobs:
id: setup
with:
kind: check
toolchain: 1.61.0
toolchain: nightly-2022-11-20
tools: cargo-semver-checks
- name: check semver compatibility
shell: bash
Expand Down
12 changes: 6 additions & 6 deletions semvercheck.sh
Expand Up @@ -7,21 +7,21 @@ cargo build --package pest_bootstrap
cargo run --package pest_bootstrap

# current
for crate in "pest_derive" "pest_generator" "pest_grammars" "pest_meta" "pest" "pest_vm"; do
cargo +nightly rustdoc -p $crate -- $RUSTDOC_LATE_FLAGS
for crate in "pest_derive" "pest_generator" "pest_grammars" "pest_meta" "pest" "pest_vm" "pest_debugger"; do
cargo +nightly-2022-11-20 rustdoc -p $crate -- $RUSTDOC_LATE_FLAGS
mv target/doc/$crate.json /tmp/current-$crate.json
done

# the latest 2.1.x release
export BASELINE_GIT_SHA="7dee2a7770daa213b45f88e6af730868f764927a"
# the 2.5.0 release
export BASELINE_GIT_SHA="8c602d832e625a0965701618626166e2ffbd94bb"
# baseline
git fetch origin
git checkout "$BASELINE_GIT_SHA"
cargo clean
cargo build --package pest_bootstrap
cargo run --package pest_bootstrap
for crate in "pest_derive" "pest_generator" "pest_grammars" "pest_meta" "pest" "pest_vm"; do
cargo +nightly rustdoc -p $crate -- $RUSTDOC_LATE_FLAGS
for crate in "pest_derive" "pest_generator" "pest_grammars" "pest_meta" "pest" "pest_vm" "pest_debugger"; do
cargo +nightly-2022-11-20 rustdoc -p $crate -- $RUSTDOC_LATE_FLAGS
mv target/doc/$crate.json /tmp/baseline-$crate.json
echo "Checking $crate"
cargo semver-checks check-release --current /tmp/current-$crate.json --baseline /tmp/baseline-$crate.json
Expand Down