Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,34 @@ jobs:
path: target/armv7-unknown-linux-musleabihf/firmware/rayhunter-daemon
if-no-files-found: error

build_rayhunter_mips:
if: needs.files_changed.outputs.daemon_changed != '0'
needs:
- check_and_test
- files_changed
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Install cross
run: cargo install cross --git https://github.com/cross-rs/cross
- uses: Swatinem/rust-cache@v2
- name: Build rayhunter-daemon (MIPS)
run: |
pushd daemon/web
npm install
npm run build
popd
cross +nightly build -p rayhunter-daemon --bin rayhunter-daemon --target mips-unknown-linux-musl --release
- uses: actions/upload-artifact@v4
with:
name: rayhunter-daemon-mips
path: target/mips-unknown-linux-musl/release/rayhunter-daemon
if-no-files-found: error

build_rust_installer:
if: needs.files_changed.outputs.installer_changed != '0'
permissions:
Expand Down
7 changes: 7 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build]
pre-build = []

[target.mips-unknown-linux-musl]
image = "ghcr.io/cross-rs/mips-unknown-linux-musl:latest"
# Build std from source since MIPS is Tier 3
build-std = ["std", "panic_abort"]
Loading