Skip to content

Commit

Permalink
ci: change runner to macos 13
Browse files Browse the repository at this point in the history
  • Loading branch information
XuNeal committed Dec 23, 2024
1 parent ec90a42 commit 02b15d0
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
build:
name: Build Android Release
if: github.event.review.state == 'approved'
runs-on: macos-12
runs-on: macos-13
steps:
- name: Get the latest commit SHA
id: sha
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-release-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
name: Build iOS Release
if: github.event.review.state == 'approved'
runs-on: macos-12
runs-on: macos-13
steps:
- name: Get the latest commit SHA
id: sha
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:
jobs:
build:
name: Run Tcx Unit Testing
runs-on: macos-12
runs-on: macos-13
steps:
- name: Get the latest commit SHA
id: sha
Expand Down
10 changes: 8 additions & 2 deletions imkey-core/ikc-common/src/applet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ mod tests {
assert_eq!(get_appname_by_instid("695F626368").unwrap(), "Bitcoin Cash");
assert_eq!(get_appname_by_instid("695F6C7463").unwrap(), "Litecoin");
assert_eq!(get_appname_by_instid("695F696D6B").unwrap(), "IMK");
assert_eq!(get_appname_by_instid("695F646F6765636F696E").unwrap(), "Dogecoin");
assert_eq!(
get_appname_by_instid("695F646F6765636F696E").unwrap(),
"Dogecoin"
);
assert!(get_appname_by_instid("1111111111").is_none());
}

Expand All @@ -75,7 +78,10 @@ mod tests {
);
assert_eq!(get_instid_by_appname("Bitcoin Cash").unwrap(), "695F626368");
assert_eq!(get_instid_by_appname("Litecoin").unwrap(), "695F6C7463");
assert_eq!(get_instid_by_appname("Dogecoin").unwrap(), "695F646F6765636F696E");
assert_eq!(
get_instid_by_appname("Dogecoin").unwrap(),
"695F646F6765636F696E"
);
assert!(get_instid_by_appname("APPLET").is_none());
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc-wallet/coin-bitcoin/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@ mod test {
segwit_address
);
}
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc-wallet/coin-bitcoin/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ mod test {
"imkey_sdk_illegal_argument"
);
}
}
}
6 changes: 3 additions & 3 deletions imkey-core/ikc-wallet/coin-bitcoin/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ impl BtcTransaction {
pub fn build_send_to_output(&self) -> TxOut {
TxOut {
value: self.amount as u64,
script_pubkey: BtcKinAddress::from_str(&self.to).unwrap().script_pubkey()
script_pubkey: BtcKinAddress::from_str(&self.to).unwrap().script_pubkey(),
}
}

Expand Down Expand Up @@ -2010,7 +2010,7 @@ mod tests {
None,
"NONE",
);

assert_eq!(
"01000000047a222fb053b6e5339a9b6f9649f88a9481606cf3c64c4557802b3a819ddf3a98000000006a47304402200eb094ab218f492e15bcae19c61c980111fdca403108ed8502a6c4ada5ffe8b802204afb0b58b770a4523148895ffdb1a154c0642584223306c267ee67e6d2f35fba01210312a0cb31ff52c480c049da26d0aaa600f47e9deee53d02fc2b0e9acf3c20fbdfffffffff31b5a9794dcaf82af1738745afe1ecf402ea4a93e71ae75c7d3d8bf7c78aef45010000006a47304402203b7317f8443f49a8c2930b679181feb0640e88447bca3f2a94600cc0078e4ab90220624ec6e2ba25f3bde477df048d84a9aad736087332ffced65377a66b1ea4d3c10121033d710ab45bb54ac99618ad23b3c1da661631aa25f23bfe9d22b41876f1d46e4effffffffa92c40dfd195a188d87110557fb7f46dbbfb68c4bb8718f33dc31d61927ec614000000006b4830450221008541d1e27f76450b4b78a89af8e6707a042a30151d1e59d271f335720a3a4a590220152b688827df0fff697cb8ba47a6293a4785d651e5da426854bebce7ea4d34010121033d710ab45bb54ac99618ad23b3c1da661631aa25f23bfe9d22b41876f1d46e4effffffffb99a3e8884b14f330d2a444a4bc2a03af16804fb99b5e37ee892ed5db8b67f11010000006a473044022042b27e6639c575f0acf4ebb4b43ee52ff9fef2888caf5d88d38a6c6b062cbbae022048446492f4c315cc5cd37d6dac041d67ffbf1bc199311bfc5f29fbdb102279a60121033d710ab45bb54ac99618ad23b3c1da661631aa25f23bfe9d22b41876f1d46e4effffffff0220d9ae2f000000001976a914383fb81cb0a3fc724b5e08cf8bbd404336d711f688acd0070000000000001976a91412967cdd9ceb72bbdbb7e5db85e2dbc6d6c3ab1a88ac00000000",
sign_result.as_ref().unwrap().signature
Expand Down Expand Up @@ -2128,4 +2128,4 @@ mod tests {
);
assert_eq!(sign_result.as_ref().unwrap().signature, "020000000001027f717276057e6012afa99385c18cc692397a666560520577679bf38c08b5cec20000000017160014654fbb08267f3d50d715a8f1abb55979b160dd5bffffffff74cdd54bc48333e1d2f108460284d137c39b6c417d9ff55a572a9550d428d69a00000000171600149d66aa6399de69d5c5ae19f9098047760251a854ffffffff02c05701000000000017a91481af6d803fdc6dca1f3a1d03f5ffe8124cd1b44787d00700000000000017a914755fba51b5c443b9f16b1f86665dec10dd7a25c58702483045022100aa512e5b38e828bc2219ea58c8f8c432f5f1ad5e13a7972e01d1b43740e08cf302201ae50dfd52cd1d37d285a085064afe18ec822d7f05187441614cb0865ce8db530121031aee5e20399d68cf0035d1a21564868f22bc448ab205292b4279136b15ecaebc0247304402202da72ad7f19306c6aabcf7ee2ce48bcf4c3b508027ce1c572f6cd0ea95bf0a5202204331ddced75e1eb67e2ead1ee328942e4f3b7c6eb2b785a1caa6b7fe2abf7542012103a241c8d13dd5c92475652c43bf56580fbf9f1e8bc0aa0132ddc8443c03062bb900000000");
}
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc-wallet/coin-bitcoin/src/usdt_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,4 +772,4 @@ mod tests {
"imkey_amount_less_than_minimum"
);
}
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc/src/btc_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ pub fn derive_account(param: &AddressParam) -> Result<Vec<u8>> {
address,
};
encode_message(address_message)
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc/src/btc_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ pub fn btc_sign_message(data: &[u8], sign_param: &SignParam) -> Result<Vec<u8>>
};
let signed = singer.sign_message(input)?;
encode_message(signed)
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,4 @@ mod test {
"unsupported_chain_type"
);
}
}
}
2 changes: 1 addition & 1 deletion imkey-core/ikc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2327,4 +2327,4 @@ mod tests {
"bc1pqvrla5hul9cqdtz60lwwn35zdcx363pyxua0trqnz3wx8hvjxzdsdevceu"
);
}
}
}

0 comments on commit 02b15d0

Please sign in to comment.