Skip to content

Ci improvements#33

Merged
BennoLossin merged 8 commits intomainfrom
ci-improvements
Apr 13, 2025
Merged

Ci improvements#33
BennoLossin merged 8 commits intomainfrom
ci-improvements

Conversation

@BennoLossin
Copy link
Copy Markdown
Member

No description provided.

@BennoLossin BennoLossin force-pushed the ci-improvements branch 12 times, most recently from c94569b to a07d08d Compare April 13, 2025 00:03
The `quote` module only is available in the kernel and thus running
`cargo fmt` or `rustfmt internal/src/lib.rs` results in:

    error: couldn't read `~/pin-init/internal/src/../../../macros/quote.rs`: No such file or directory (os error 2)
      --> ~/pin-init/internal/src/lib.rs:25:1
       |
    25 | mod quote;
       | ^^^^^^^^^^

    Error writing files: failed to resolve mod `quote`: ~/pin-init/internal/src/../../../macros/quote.rs does not exist

Thus mark it with `rustfmt::skip` when compiling without kernel support.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
`lint_reasons` is unstable in Rust 1.80 and earlier, enable it
conditionally in the examples to allow compiling them with older
compilers.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Rust 1.78 doesn't emit a `dead_code` error on the annotated element,
resulting in the `unfulfilled_lint_expectations` error. Rust 1.85 does
emit the `dead_code` error, so we still need an `allow`.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Required for CI on Rust 1.78.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
This check compares torvalds/master `rust/pin-init` with this repo's
`kernel` branch and fails if they are not in sync.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
@BennoLossin BennoLossin merged commit 1c86ff3 into main Apr 13, 2025
14 checks passed
@BennoLossin BennoLossin deleted the ci-improvements branch April 17, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant