-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: faster cargo-public-api install (#3255)
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/[email protected] | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
|
||
- name: Check with rustfmt | ||
- name: Check with Rustfmt | ||
run: cargo fmt --all -- --check | ||
|
||
clippy: | ||
|
@@ -53,7 +54,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/[email protected] | ||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: nightly | ||
components: rust-docs | ||
|
@@ -66,21 +68,25 @@ jobs: | |
public-api-diff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.base_ref }} | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Checkout PR branch | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions-rust-lang/[email protected] | ||
- name: Install Rust | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: nightly-2023-08-25 | ||
|
||
- uses: taiki-e/[email protected] | ||
- name: Install cargo-public-api | ||
uses: taiki-e/[email protected] | ||
with: | ||
tool: cargo-public-api | ||
|
||
- name: generate API diff | ||
- name: Generate API diff | ||
run: | | ||
for f in $(find -mindepth 2 -maxdepth 2 -name Cargo.toml); do | ||
cargo public-api --manifest-path "$f" diff ${{ github.event.pull_request.base.sha }}..${{ github.sha }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters