mirror of
https://github.com/by-sonic/tglock.git
synced 2026-09-20 09:28:26 +03:00
ci: use available Android tools and verify Windows CLI artifact
This commit is contained in:
@@ -25,6 +25,9 @@ jobs:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
- uses: android-actions/setup-android@v3
|
||||
with:
|
||||
packages: platform-tools
|
||||
log-accepted-android-sdk-licenses: false
|
||||
- name: Install Android SDK and NDK
|
||||
run: |
|
||||
sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;28.0.13004108"
|
||||
|
||||
@@ -21,6 +21,14 @@ jobs:
|
||||
run: cargo clippy --locked --no-default-features --features cli --all-targets -- -D warnings
|
||||
- name: Test CLI and core
|
||||
run: cargo test --locked --no-default-features --features cli --lib --bins
|
||||
- name: Build CLI for manual Windows verification
|
||||
run: cargo build --locked --no-default-features --features cli --bin tglock-cli
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: tglock-cli-windows-debug
|
||||
path: target/debug/tglock-cli.exe
|
||||
if-no-files-found: error
|
||||
retention-days: 14
|
||||
|
||||
rust:
|
||||
name: Rust checks
|
||||
|
||||
+3
-1
@@ -702,7 +702,9 @@ mod tests {
|
||||
// Fixed wire bytes avoid a symmetric mistake in the test peer helpers.
|
||||
fn bytes(hex: &str) -> Vec<u8> {
|
||||
hex.as_bytes()
|
||||
.chunks_exact(2)
|
||||
.as_chunks::<2>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|pair| u8::from_str_radix(std::str::from_utf8(pair).unwrap(), 16).unwrap())
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user