Skip to content
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

turn on musl test in CI #2069

Merged
merged 2 commits into from
Jun 22, 2023
Merged

turn on musl test in CI #2069

merged 2 commits into from
Jun 22, 2023

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented Jun 20, 2023

Turn the musl target testing in CI. At the moment, this is only for libcontainer since there is an actual usecase from aurae project to compile libcontainer statically with musl. I choose to put the musl in a separate job because of the unique requirement for the nightly toolchain. While it is easy for us to switch toolchains in the dev box, it proves to be not possible to mix toolchains with the existing rust github action setup. It is easier to create a new job with the specific toolchains required.

@yihuaf yihuaf changed the title turn musl test in CI turn on musl test in CI Jun 20, 2023
@yihuaf yihuaf marked this pull request as ready for review June 20, 2023 04:26
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2023

Codecov Report

Merging #2069 (047e519) into main (f4e7e30) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2069   +/-   ##
=======================================
  Coverage   64.81%   64.81%           
=======================================
  Files         129      129           
  Lines       14768    14768           
=======================================
  Hits         9572     9572           
  Misses       5196     5196           

@yihuaf yihuaf marked this pull request as draft June 20, 2023 05:01
Signed-off-by: yihuaf <yihuaf@unkies.org>
@yihuaf yihuaf marked this pull request as ready for review June 20, 2023 20:41
@yihuaf yihuaf requested review from utam0k, YJDoc2 and a team June 20, 2023 20:41
@yihuaf yihuaf self-assigned this Jun 20, 2023

# run cargo unittests
unittest:
cd ./crates
LD_LIBRARY_PATH=${HOME}/.wasmedge/lib cargo test --all --all-targets --all-features

# run permutated feature compilation tests
featuretest:
test-features:
Copy link
Member

Choose a reason for hiding this comment

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

👍

# The `setup-rust-toolchain` action will always choose toolchain file with
# no way to override.
- name: Setup Rust toolchain and cache
uses: dtolnay/rust-toolchain@stable
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to specify stable? I wonder because we have had rust-toolchain.toml.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch! I mis-read the documentation and thought the stable referred to the github action version... I will make the change.

Signed-off-by: yihuaf <yihuaf@unkies.org>
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

🚀

@utam0k utam0k merged commit dfe6ee8 into youki-dev:main Jun 22, 2023
@yihuaf yihuaf deleted the yihuaf/musl branch July 6, 2023 08:16
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.

3 participants