Skip to content

Set up GitHub Actions CI#10

Merged
carllerche merged 3 commits into
masterfrom
taiki-e/github-actions
May 11, 2021
Merged

Set up GitHub Actions CI#10
carllerche merged 3 commits into
masterfrom
taiki-e/github-actions

Conversation

@taiki-e
Copy link
Copy Markdown
Member

@taiki-e taiki-e commented May 11, 2021

Closes #8

Comment thread .github/workflows/ci.yml
Comment on lines +28 to +30
# TODO: Currently, valuable cannot build with targets that do not have atomic CAS.
# We should port https://github.com/rust-lang/futures-rs/pull/2400.
# - thumbv6m-none-eabi
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix of this is in my other branch (be24a36), but it is bigger than this PR, so perhaps separate PR would be preferable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #12

Comment thread .github/workflows/ci.yml
Comment on lines +38 to +39
# TODO: Currently, valuable cannot build without `alloc` feature
# because `Debug` impl of `dyn Enumerable` uses `format!` macro.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mainly due to the following two lines.

let name = format!("{}::{}", self.name, variant.name());

let name = format!("{}::{}", self.name, variant.name());

@carllerche: Do you think it's ok to change it to print only variant name when alloc feature is disabled? (like the following)

#[cfg(feature = "alloc")]
let name = format!("{}::{}", self.name, variant.name());
#[cfg(not(feature = "alloc"))]
let name = variant.name();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah... we can probably tweak that. I'm fine w/ your proposal. Another PR 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #11

@taiki-e taiki-e requested a review from carllerche May 11, 2021 13:43
@carllerche carllerche merged commit f9f7939 into master May 11, 2021
@taiki-e taiki-e deleted the taiki-e/github-actions branch May 11, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup CI

2 participants