Add Orbic support for the Rust installer and some common improvements

This commit is contained in:
Sashanoraa
2025-04-26 21:05:48 -04:00
committed by Cooper Quintin
parent 1f7b7f0f1a
commit 30d62b8d7b
5 changed files with 333 additions and 41 deletions

View File

@@ -109,7 +109,7 @@ jobs:
- run: cargo build --bin installer --release --target ${{ matrix.platform.target }} --features vendor
- uses: actions/upload-artifact@v4
with:
name: tplink-installer-${{ matrix.platform.name }}
name: installer-${{ matrix.platform.name }}
path: target/${{ matrix.platform.target }}/release/installer${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
if-no-files-found: error
@@ -118,14 +118,15 @@ jobs:
- build_rayhunter_check
- build_rootshell
- build_rayhunter
- build_rust_installer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Fix executable permissions on binaries
run: chmod +x serial-*/serial rayhunter-check-*/rayhunter-check rayhunter-daemon-*/rayhunter-daemon
run: chmod +x installer-*/installer rayhunter-check-*/rayhunter-check rayhunter-daemon-*/rayhunter-daemon
- name: Setup release directory
run: mv rayhunter-daemon-* rootshell/rootshell serial-* dist
run: mv rayhunter-daemon-* rootshell/rootshell installer-* dist
- name: Archive release directory
run: tar -cvf release.tar -C dist .
# TODO: have this create a release directly

View File

@@ -37,3 +37,17 @@ jobs:
- name: Run clippy
run: cargo clippy --verbose --no-default-features --features=${{ matrix.device.name }}
windows_installer_check_and_test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: cargo check
shell: bash
run: |
cd installer
cargo check --verbose
- name: cargo test
shell: bash
run: |
cd installer
cargo test --verbose --no-default-features --features=${{ matrix.device.name }}