Fix OSDK CI bugs & Build OSDK with stable channel in CI

This commit is contained in:
Jianfeng Jiang
2024-05-14 11:30:45 +00:00
committed by Tate, Hongliang Tian
parent 69abc09f5a
commit 32b1fb3723
7 changed files with 25 additions and 24 deletions

View File

@ -1,4 +1,4 @@
project_type = "lib"
project_type = "library"
[boot]
method = "qemu-direct"

View File

@ -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()
}