mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 07:29:59 -07:00
Add Orbic support for the Rust installer and some common improvements
This commit is contained in:
committed by
Cooper Quintin
parent
1f7b7f0f1a
commit
30d62b8d7b
7
.github/workflows/build-release.yml
vendored
7
.github/workflows/build-release.yml
vendored
@@ -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
|
||||
|
||||
14
.github/workflows/check-and-test.yml
vendored
14
.github/workflows/check-and-test.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user