/home/runner/.cargo/bin/cargo semver-checks check-release
Building test2 v0.1.0 (current)
Built [ 12.754s] (current)
Parsing test2 v0.1.0 (current)
Parsed [ 0.002s] (current)
Building test2 v0.1.0 (baseline)
error: running cargo-doc on crate 'test2' failed with output:
-----
warning: placeholder v0.0.0 (/home/runner/work/rust-ci-github-actions-workflow/rust-ci-github-actions-workflow/semver-checks/target/semver-checks/registry-test2-0_1_0-default-01666ec060466c14) ignoring invalid dependency `test2` which is missing a lib target
error: no library targets found in package `test2`
-----
error: failed to build rustdoc for crate test2 v0.1.0
note: this is usually due to a compilation error in the crate,
and is unlikely to be a bug in cargo-semver-checks
note: the following command can be used to reproduce the error:
cargo new --lib example &&
cd example &&
echo '[workspace]' >> Cargo.toml &&
cargo add test2@=0.1.0 &&
cargo check &&
cargo doc
error: aborting due to failure to build rustdoc for crate test2 v0.1.0
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1
semver:
name: Check semver
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.deps.dev:443
api.github.com:443
api.osv.dev:443
api.scorecard.dev:443
fulcio.sigstore.dev:443
github.com:443
oss-fuzz-build-logs.storage.googleapis.com:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
www.bestpractices.dev:443
objects.githubusercontent.com:443
release-assets.githubusercontent.com:443
static.rust-lang.org:443
index.crates.io:443
static.crates.io:443
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
- uses: obi1kenobi/cargo-semver-checks-action@5b298c9520f7096a4683c0bd981a7ac5a7e249ae # v2.8
/home/runner/.cargo/bin/cargo semver-checks check-release Building test2 v0.1.0 (current) Built [ 12.754s] (current) Parsing test2 v0.1.0 (current) Parsed [ 0.002s] (current) Building test2 v0.1.0 (baseline) error: running cargo-doc on crate 'test2' failed with output: ----- warning: placeholder v0.0.0 (/home/runner/work/rust-ci-github-actions-workflow/rust-ci-github-actions-workflow/semver-checks/target/semver-checks/registry-test2-0_1_0-default-01666ec060466c14) ignoring invalid dependency `test2` which is missing a lib target error: no library targets found in package `test2` ----- error: failed to build rustdoc for crate test2 v0.1.0 note: this is usually due to a compilation error in the crate, and is unlikely to be a bug in cargo-semver-checks note: the following command can be used to reproduce the error: cargo new --lib example && cd example && echo '[workspace]' >> Cargo.toml && cargo add test2@=0.1.0 && cargo check && cargo doc error: aborting due to failure to build rustdoc for crate test2 v0.1.0 Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 1