mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Fix OSDK CI bugs & Build OSDK with stable channel in CI
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
69abc09f5a
commit
32b1fb3723
@ -1,4 +1,4 @@
|
||||
project_type = "lib"
|
||||
project_type = "library"
|
||||
|
||||
[boot]
|
||||
method = "qemu-direct"
|
||||
|
@ -7,7 +7,9 @@ use crate::{
|
||||
base_crate::new_base_crate,
|
||||
cli::TestArgs,
|
||||
config::{scheme::ActionChoice, Config},
|
||||
util::{get_cargo_metadata, get_current_crate_info, get_target_directory},
|
||||
util::{
|
||||
get_cargo_metadata, get_current_crate_info, get_target_directory, parse_package_id_string,
|
||||
},
|
||||
};
|
||||
|
||||
pub fn execute_test_command(config: &Config, args: &TestArgs) {
|
||||
@ -81,12 +83,9 @@ fn get_workspace_default_members() -> Vec<String> {
|
||||
default_members
|
||||
.iter()
|
||||
.map(|value| {
|
||||
// The default member is in the form of "<crate_name> <crate_version> (path+file://<crate_path>)"
|
||||
let default_member = value.as_str().unwrap();
|
||||
let path = default_member.split(' ').nth(2).unwrap();
|
||||
path.trim_start_matches("(path+file://")
|
||||
.trim_end_matches(')')
|
||||
.to_string()
|
||||
let crate_info = parse_package_id_string(default_member);
|
||||
crate_info.path
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
Reference in New Issue
Block a user