-
Notifications
You must be signed in to change notification settings - Fork 703
Fix cargo semver checks #4731
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
Fix cargo semver checks #4731
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -83,8 +83,11 @@ jobs: | |||||||||||||||||||||||||||||||||||||||||
| python3 -m pip install requests --quiet | ||||||||||||||||||||||||||||||||||||||||||
| bin/check/rust_version.py --token ${GITHUB_TOKEN} 7 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Check semver | ||||||||||||||||||||||||||||||||||||||||||
| uses: obi1kenobi/[email protected] | ||||||||||||||||||||||||||||||||||||||||||
| - name: Semver | ||||||||||||||||||||||||||||||||||||||||||
| if: always() | ||||||||||||||||||||||||||||||||||||||||||
| run: | | ||||||||||||||||||||||||||||||||||||||||||
| cargo install cargo-semver-checks --locked >/dev/null 2>&1 | ||||||||||||||||||||||||||||||||||||||||||
| bin/check/semver.sh | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+86
to
+90
|
||||||||||||||||||||||||||||||||||||||||||
| - name: Semver | |
| if: always() | |
| run: | | |
| cargo install cargo-semver-checks --locked >/dev/null 2>&1 | |
| bin/check/semver.sh | |
| - name: Cache cargo-semver-checks | |
| if: always() | |
| id: cache-cargo-semver | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo | |
| key: cargo-semver-checks-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | |
| - name: Install cargo-semver-checks | |
| if: always() && steps.cache-cargo-semver.outputs.cache-hit != 'true' | |
| run: cargo install cargo-semver-checks --locked >/dev/null 2>&1 | |
| - name: Semver | |
| if: always() | |
| run: bin/check/semver.sh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
| set -Eeuo pipefail | ||
|
|
||
| result=/tmp/output.txt | ||
| cargo semver-checks > "${result}" 2>&1 && exit_code=0 || exit_code=$? | ||
| cat "${result}" | ||
| if [[ ${exit_code} -gt 0 ]] ; then | ||
| if grep -i "unsupported rustdoc format" "${result}" >/dev/null 2>&1 ; then | ||
| echo "> Allowing failure because actual rustdoc format is not supported by cargo-semver-checks for now" | ||
| exit 0 | ||
| else | ||
| exit "${exit_code}" | ||
| fi | ||
| fi |
Uh oh!
There was an error while loading. Please reload this page.