Move serial into the installer in prep for Orbic support

This commit is contained in:
Sashanoraa
2025-04-26 21:04:52 -04:00
committed by Cooper Quintin
parent da53ec9df2
commit 1f7b7f0f1a
6 changed files with 1522 additions and 109 deletions
+3 -14
View File
@@ -10,7 +10,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
build_serial_and_check:
build_rayhunter_check:
strategy:
matrix:
platform:
@@ -32,18 +32,7 @@ jobs:
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.target }}
- name: Build serial
run: cargo build --bin serial --release --target ${{ matrix.platform.target }}
- uses: actions/upload-artifact@v4
with:
name: serial-${{ matrix.platform.name }}
path: target/${{ matrix.platform.target }}/release/serial${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
if-no-files-found: error
- uses: actions/checkout@v4
- name: Build check
- name: Build rayhunter-check
run: cargo build --bin rayhunter-check --release
- uses: actions/upload-artifact@v4
with:
@@ -126,7 +115,7 @@ jobs:
build_release_zip:
needs:
- build_serial_and_check
- build_rayhunter_check
- build_rootshell
- build_rayhunter
runs-on: ubuntu-latest
-14
View File
@@ -37,17 +37,3 @@ jobs:
- name: Run clippy
run: cargo clippy --verbose --no-default-features --features=${{ matrix.device.name }}
windows_serial_check_and_test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: cargo check
shell: bash
run: |
cd serial
cargo check --verbose
- name: cargo test
shell: bash
run: |
cd serial
cargo test --verbose --no-default-features --features=${{ matrix.device.name }}
Generated
+1513 -70
View File
File diff suppressed because it is too large Load Diff
+6
View File
@@ -7,10 +7,16 @@ edition = "2024"
vendor = []
[dependencies]
adb_client = { git = "https://github.com/gaykitty/adb_client.git", branch = "nusb" }
# adb_client = { path = "../../adb_client/adb_client" }
anyhow = "1.0.98"
clap = { version = "4.5.37", features = ["derive"] }
md5 = "0.7.0"
nusb = "0.1.13"
reqwest = { version = "0.12.15", features = ["json"], default-features = false }
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
sha2 = "0.10.8"
tokio = { version = "1.44.2", features = ["full"] }
tokio-retry2 = "0.5.7"
tokio-stream = "0.1.17"
-11
View File
@@ -1,11 +0,0 @@
[package]
name = "serial"
version = "0.2.6"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.97"
nusb = "0.1.13"
tokio = { version = "1.44.2", features = ["macros", "rt", "time"] }