Skip to content

Ci improvements #33

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 8 commits into from
Apr 13, 2025
Merged

Ci improvements #33

merged 8 commits into from
Apr 13, 2025

Conversation

BennoLossin
Copy link
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