-
Notifications
You must be signed in to change notification settings - Fork 30
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
Test no_std
in CI
#239
Test no_std
in CI
#239
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,10 +111,8 @@ jobs: | |
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
||
# TODO: Add --target x86_64-unknown-none to the no_std check once we solve the compilation issues with it. | ||
# https://github.com/linebender/parley/issues/86 | ||
- name: cargo clippy (no_std) | ||
run: cargo hack clippy --workspace --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} -- -D warnings | ||
run: cargo hack clippy ${{ env.RUST_MIN_VER_PKGS }} --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} --target x86_64-unknown-none -- -D warnings | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. I think the idiomatic approach here would be to add a new environment variable? cc @xStrom There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An even better solution is a brand new For now I think it's fine to abuse |
||
|
||
- name: cargo clippy | ||
run: cargo hack clippy --workspace --locked --optional-deps --each-feature --ignore-unknown-features --features std -- -D warnings | ||
|
@@ -197,6 +195,7 @@ jobs: | |
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_MIN_VER }} | ||
targets: x86_64-unknown-none | ||
|
||
- name: install cargo-hack | ||
uses: taiki-e/install-action@v2 | ||
|
@@ -208,10 +207,8 @@ jobs: | |
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
||
# TODO: Add --target x86_64-unknown-none to the no_std check once we solve the compilation issues with it. | ||
# https://github.com/linebender/parley/issues/86 | ||
- name: cargo check (no_std) | ||
run: cargo hack check ${{ env.RUST_MIN_VER_PKGS }} --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} | ||
run: cargo hack check ${{ env.RUST_MIN_VER_PKGS }} --locked --optional-deps --each-feature --ignore-unknown-features --features libm --exclude-features ${{ env.FEATURES_DEPENDING_ON_STD }} --target x86_64-unknown-none | ||
|
||
- name: cargo check | ||
run: cargo hack check ${{ env.RUST_MIN_VER_PKGS }} --locked --optional-deps --each-feature --ignore-unknown-features --features std | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the status of #86 once this PR is merged? I don't think this is currently marked as fixing that issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be reviewed!