-
-
Notifications
You must be signed in to change notification settings - Fork 16
chore: Bump Rust version and workflow actions #973
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
27ac526
chore: Bump Rust toolchain to 1.84.1
Techassi c1c64f5
ci: Bump workflow actions
Techassi ac8c443
ci: Harden workflows
Techassi c9ae4d0
ci: Bump cargo-udeps to 0.1.55
Techassi ab0a0ab
chore: Apply suggestion
Techassi 1792936
chore: Update issue template
Techassi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,11 +17,13 @@ env: | |
| CARGO_TERM_COLOR: always | ||
| CARGO_INCREMENTAL: '0' | ||
| CARGO_PROFILE_DEV_DEBUG: '0' | ||
| RUST_TOOLCHAIN_VERSION: "1.82.0" | ||
| RUST_TOOLCHAIN_VERSION: "1.84.1" | ||
| RUSTFLAGS: "-D warnings" | ||
| RUSTDOCFLAGS: "-D warnings" | ||
| RUST_LOG: "info" | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| # Identify unused dependencies | ||
| run_udeps: | ||
|
|
@@ -30,14 +32,16 @@ jobs: | |
| env: | ||
| RUSTC_BOOTSTRAP: 1 | ||
| steps: | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
| - uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | ||
| with: | ||
| key: udeps | ||
| - run: cargo install --locked [email protected].50 | ||
| - run: cargo install --locked [email protected].55 | ||
| - run: cargo udeps --all-targets --all-features | ||
|
|
||
| run_cargodeny: | ||
|
|
@@ -53,21 +57,25 @@ jobs: | |
| continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # v1.6.3 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: EmbarkStudios/cargo-deny-action@0484eedcba649433ebd03d9b7c9c002746bbc4b9 # v2.0.6 | ||
| with: | ||
| command: check ${{ matrix.checks }} | ||
|
|
||
| run_rustfmt: | ||
| name: Run Rustfmt | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
| components: rustfmt | ||
| - uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | ||
| with: | ||
| key: fmt | ||
| - run: cargo fmt --all -- --check | ||
|
|
@@ -80,14 +88,15 @@ jobs: | |
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install protobuf-compiler krb5-user libkrb5-dev libclang-dev liblzma-dev libssl-dev pkg-config | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| submodules: recursive | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
| components: clippy | ||
| - uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | ||
| with: | ||
| key: clippy | ||
| - name: Run clippy action to produce annotations | ||
|
|
@@ -112,12 +121,14 @@ jobs: | |
| name: Run RustDoc | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
| components: rustfmt | ||
| - uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | ||
| with: | ||
| key: doc | ||
| - run: cargo doc --document-private-items | ||
|
|
@@ -130,15 +141,17 @@ jobs: | |
| - run_rustdoc | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} | ||
| # rust-src is required for trybuild stderr output comparison to work | ||
| # for our cases. | ||
| # See: https://github.com/dtolnay/trybuild/issues/236#issuecomment-1620950759 | ||
| components: rust-src | ||
| - uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
| - uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7 | ||
| with: | ||
| key: test | ||
| - run: cargo test --all-features | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| [toolchain] | ||
| channel = "1.82.0" | ||
| channel = "1.84.1" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.