File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,34 @@ jobs:
260
260
path : target/armv7-unknown-linux-musleabihf/firmware/rayhunter-daemon
261
261
if-no-files-found : error
262
262
263
+ build_rayhunter_mips :
264
+ if : needs.files_changed.outputs.daemon_changed != '0'
265
+ needs :
266
+ - check_and_test
267
+ - files_changed
268
+ permissions :
269
+ contents : read
270
+ packages : write
271
+ runs-on : ubuntu-latest
272
+ steps :
273
+ - uses : actions/checkout@v4
274
+ - uses : dtolnay/rust-toolchain@nightly
275
+ - name : Install cross
276
+ run : cargo install cross --git https://github.com/cross-rs/cross
277
+ - uses : Swatinem/rust-cache@v2
278
+ - name : Build rayhunter-daemon (MIPS)
279
+ run : |
280
+ pushd daemon/web
281
+ npm install
282
+ npm run build
283
+ popd
284
+ cross +nightly build -p rayhunter-daemon --bin rayhunter-daemon --target mips-unknown-linux-musl --release
285
+ - uses : actions/upload-artifact@v4
286
+ with :
287
+ name : rayhunter-daemon-mips
288
+ path : target/mips-unknown-linux-musl/release/rayhunter-daemon
289
+ if-no-files-found : error
290
+
263
291
build_rust_installer :
264
292
if : needs.files_changed.outputs.installer_changed != '0'
265
293
permissions :
Original file line number Diff line number Diff line change
1
+ [build ]
2
+ pre-build = []
3
+
4
+ [target .mips-unknown-linux-musl ]
5
+ image = " ghcr.io/cross-rs/mips-unknown-linux-musl:latest"
6
+ # Build std from source since MIPS is Tier 3
7
+ build-std = [" std" , " panic_abort" ]
You can’t perform that action at this time.
0 commit comments