mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-26 01:49:32 +01:00
Use stable Rust with cargo-semver-checks>=0.12.
This commit is contained in:
parent
a1d8af322f
commit
4cc566bb04
1 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ runs:
|
||||||
- name: Install rust
|
- name: Install rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: stable
|
||||||
profile: minimal
|
profile: minimal
|
||||||
- name: Build rustdoc and check it
|
- name: Build rustdoc and check it
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -64,7 +64,7 @@ runs:
|
||||||
export COMPARISON_TAG="${{ inputs.version-tag-prefix }}$("$GITHUB_ACTION_PATH/find_comparison_version.sh" "$PACKAGE_NAME")"
|
export COMPARISON_TAG="${{ inputs.version-tag-prefix }}$("$GITHUB_ACTION_PATH/find_comparison_version.sh" "$PACKAGE_NAME")"
|
||||||
git fetch --depth=1 origin "+refs/tags/$COMPARISON_TAG:refs/tags/$COMPARISON_TAG"
|
git fetch --depth=1 origin "+refs/tags/$COMPARISON_TAG:refs/tags/$COMPARISON_TAG"
|
||||||
git checkout "$COMPARISON_TAG"
|
git checkout "$COMPARISON_TAG"
|
||||||
cargo +nightly rustdoc $RUSTDOC_EARLY_FLAGS -- $RUSTDOC_LATE_FLAGS
|
RUSTC_BOOTSTRAP=1 cargo rustdoc $RUSTDOC_EARLY_FLAGS -- $RUSTDOC_LATE_FLAGS
|
||||||
mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/baseline.json
|
mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/baseline.json
|
||||||
|
|
||||||
# Return to the original git sha.
|
# Return to the original git sha.
|
||||||
|
@ -72,7 +72,7 @@ runs:
|
||||||
|
|
||||||
# Build rustdoc JSON for the current version, and move it to /tmp/
|
# Build rustdoc JSON for the current version, and move it to /tmp/
|
||||||
# so it doesn't get overwritten by the baseline build.
|
# so it doesn't get overwritten by the baseline build.
|
||||||
cargo +nightly rustdoc $RUSTDOC_EARLY_FLAGS -- $RUSTDOC_LATE_FLAGS
|
RUSTC_BOOTSTRAP=1 cargo rustdoc $RUSTDOC_EARLY_FLAGS -- $RUSTDOC_LATE_FLAGS
|
||||||
mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/current.json
|
mv "$(cargo metadata --format-version 1 | jq -r .target_directory)/doc/$PACKAGE_NAME_WITH_UNDERSCORES.json" /tmp/current.json
|
||||||
|
|
||||||
# Check for semver violations.
|
# Check for semver violations.
|
||||||
|
|
Loading…
Reference in a new issue