mirror of
https://github.com/by-sonic/tglock.git
synced 2026-11-05 15:21:55 +03:00
ci: use available Android tools and verify Windows CLI artifact
This commit is contained in:
@@ -25,6 +25,9 @@ jobs:
|
|||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- uses: android-actions/setup-android@v3
|
- uses: android-actions/setup-android@v3
|
||||||
|
with:
|
||||||
|
packages: platform-tools
|
||||||
|
log-accepted-android-sdk-licenses: false
|
||||||
- name: Install Android SDK and NDK
|
- name: Install Android SDK and NDK
|
||||||
run: |
|
run: |
|
||||||
sdkmanager "platforms;android-36" "build-tools;36.0.0" "ndk;28.0.13004108"
|
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
|
run: cargo clippy --locked --no-default-features --features cli --all-targets -- -D warnings
|
||||||
- name: Test CLI and core
|
- name: Test CLI and core
|
||||||
run: cargo test --locked --no-default-features --features cli --lib --bins
|
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:
|
rust:
|
||||||
name: Rust checks
|
name: Rust checks
|
||||||
|
|||||||
+3
-1
@@ -702,7 +702,9 @@ mod tests {
|
|||||||
// Fixed wire bytes avoid a symmetric mistake in the test peer helpers.
|
// Fixed wire bytes avoid a symmetric mistake in the test peer helpers.
|
||||||
fn bytes(hex: &str) -> Vec<u8> {
|
fn bytes(hex: &str) -> Vec<u8> {
|
||||||
hex.as_bytes()
|
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())
|
.map(|pair| u8::from_str_radix(std::str::from_utf8(pair).unwrap(), 16).unwrap())
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user