mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
Merge pull request #448 from oopsbagel/arm32-installer
ci: build installer and rayhunter-check for armv7, rename ubuntu -> linux in release bundles
This commit is contained in:
@@ -15,6 +15,10 @@ rustflags = ["-C", "target-feature=+crt-static"]
|
|||||||
linker = "rust-lld"
|
linker = "rust-lld"
|
||||||
rustflags = ["-C", "target-feature=+crt-static"]
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
|
[target.armv7-unknown-linux-musleabi]
|
||||||
|
linker = "rust-lld"
|
||||||
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
# Disable rust-lld for x86 macOS because the linker crashers when compiling
|
# Disable rust-lld for x86 macOS because the linker crashers when compiling
|
||||||
# the installer in release mode with debug info on.
|
# the installer in release mode with debug info on.
|
||||||
# [target.x86_64-apple-darwin]
|
# [target.x86_64-apple-darwin]
|
||||||
|
|||||||
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -160,6 +160,9 @@ jobs:
|
|||||||
- name: linux-x64
|
- name: linux-x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
|
- name: linux-armv7
|
||||||
|
os: ubuntu-latest
|
||||||
|
target: armv7-unknown-linux-musleabi
|
||||||
- name: linux-aarch64
|
- name: linux-aarch64
|
||||||
os: ubuntu-24.04-arm
|
os: ubuntu-24.04-arm
|
||||||
target: aarch64-unknown-linux-musl
|
target: aarch64-unknown-linux-musl
|
||||||
@@ -175,13 +178,16 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform.os }}
|
runs-on: ${{ matrix.platform.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: ${{ matrix.platform.target }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Build rayhunter-check
|
- name: Build rayhunter-check
|
||||||
run: cargo build --bin rayhunter-check --release
|
run: cargo build --bin rayhunter-check --release --target ${{ matrix.platform.target }}
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rayhunter-check-${{ matrix.platform.name }}
|
name: rayhunter-check-${{ matrix.platform.name }}
|
||||||
path: target/release/rayhunter-check${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
|
path: target/${{ matrix.platform.target }}/release/rayhunter-check${{ matrix.platform.os == 'windows-latest' && '.exe' || '' }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
build_rootshell:
|
build_rootshell:
|
||||||
@@ -198,7 +204,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
targets: armv7-unknown-linux-musleabihf
|
targets: armv7-unknown-linux-musleabihf
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Build rootshell (arm32)
|
- name: Build rootshell (armv7)
|
||||||
run: cargo build --bin rootshell --target armv7-unknown-linux-musleabihf --profile=firmware
|
run: cargo build --bin rootshell --target armv7-unknown-linux-musleabihf --profile=firmware
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -227,7 +233,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
targets: armv7-unknown-linux-musleabihf
|
targets: armv7-unknown-linux-musleabihf
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- name: Build rayhunter-daemon (arm32)
|
- name: Build rayhunter-daemon (armv7)
|
||||||
run: |
|
run: |
|
||||||
pushd bin/web
|
pushd bin/web
|
||||||
npm install
|
npm install
|
||||||
@@ -264,6 +270,9 @@ jobs:
|
|||||||
- name: linux-x64
|
- name: linux-x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
|
- name: linux-armv7
|
||||||
|
os: ubuntu-latest
|
||||||
|
target: armv7-unknown-linux-musleabi
|
||||||
- name: linux-aarch64
|
- name: linux-aarch64
|
||||||
os: ubuntu-24.04-arm
|
os: ubuntu-24.04-arm
|
||||||
target: aarch64-unknown-linux-musl
|
target: aarch64-unknown-linux-musl
|
||||||
@@ -306,6 +315,7 @@ jobs:
|
|||||||
platform:
|
platform:
|
||||||
- linux-x64
|
- linux-x64
|
||||||
- linux-aarch64
|
- linux-aarch64
|
||||||
|
- linux-armv7
|
||||||
- macos-intel
|
- macos-intel
|
||||||
- macos-arm
|
- macos-arm
|
||||||
- windows-x86_64
|
- windows-x86_64
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ Make sure you've got one of Rayhunter's [supported devices](./supported-devices.
|
|||||||
1. Download the latest `rayhunter-vX.X.X-PLATFORM.zip` from the [Rayhunter releases page](https://github.com/EFForg/rayhunter/releases) for your platform:
|
1. Download the latest `rayhunter-vX.X.X-PLATFORM.zip` from the [Rayhunter releases page](https://github.com/EFForg/rayhunter/releases) for your platform:
|
||||||
- for Linux on x64 architecture: `linux-x64`
|
- for Linux on x64 architecture: `linux-x64`
|
||||||
- for Linux on ARM64 architecture: `linux-aarch64`
|
- for Linux on ARM64 architecture: `linux-aarch64`
|
||||||
|
- for Linux on armv7/v8 (32-bit) architecture: `linux-armv7`
|
||||||
- for MacOS on Intel (old macbooks) architecture: `macos-intel`
|
- for MacOS on Intel (old macbooks) architecture: `macos-intel`
|
||||||
- for MacOS on ARM (M1/M2 etc.) architecture: `macos-arm`
|
- for MacOS on ARM (M1/M2 etc.) architecture: `macos-arm`
|
||||||
- for Windows: `windows-x86_64`
|
- for Windows: `windows-x86_64`
|
||||||
|
|||||||
@@ -25,8 +25,9 @@ rustup target add armv7-unknown-linux-musleabihf
|
|||||||
# check which toolchain you have installed by default with
|
# check which toolchain you have installed by default with
|
||||||
rustup show
|
rustup show
|
||||||
# now install the correct variant for your host platform, one of:
|
# now install the correct variant for your host platform, one of:
|
||||||
rustup target add x86_64-unknown-linux-musl
|
|
||||||
rustup target add aarch64-unknown-linux-musl
|
rustup target add aarch64-unknown-linux-musl
|
||||||
|
rustup target add armv7-unknown-linux-musleabi
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
rustup target add aarch64-apple-darwin
|
rustup target add aarch64-apple-darwin
|
||||||
rustup target add x86_64-apple-darwin
|
rustup target add x86_64-apple-darwin
|
||||||
rustup target add x86_64-pc-windows-gnu
|
rustup target add x86_64-pc-windows-gnu
|
||||||
|
|||||||
Reference in New Issue
Block a user