55 lines
1.1 KiB
Markdown
55 lines
1.1 KiB
Markdown
|
|
# runner-rs ( with amd64 and riscv64 support )
|
|

|
|
in-container integrating util to handle processes runtime
|
|
|
|
|
|
## Depends on
|
|
- `rustup (>=1.27.1)`
|
|
|
|
## Building
|
|
|
|
1. Clone this repo `runner-rs`
|
|
|
|
~~~bash
|
|
git clone https://link-to-project
|
|
~~~
|
|
|
|
2. Enter project's dir and set up toolchain list to compile code for RISC-V and AMD64
|
|
|
|
~~~bash
|
|
cd runner-rs/
|
|
rustup target add riscv64gc-unknown-linux-gnu
|
|
rustup target add x86_64-unknown-linux-gnu
|
|
~~~
|
|
> [!NOTE]
|
|
> Cargo is configured to build an app for amd64/linux defaultly. RISC-based compilation is optional.
|
|
|
|
3.1. Release build of app for amd64/linux
|
|
|
|
~~~bash
|
|
cargo build --release
|
|
~~~
|
|
|
|
3.2. Release build of app for riscv64/linux
|
|
|
|
~~~bash
|
|
cargo build --release --target riscv64gc-unknown-linux-gnu
|
|
~~~
|
|
|
|
|
|
## Execution for amd64/linux
|
|
~~~bash
|
|
./target/x86_64-unknown-linux-gnu/release/runner-rs
|
|
~~~
|
|
or
|
|
~~~bash
|
|
cargo run --release
|
|
~~~
|
|
|
|
|
|
## Execution for riscv64/linux
|
|
~~~bash
|
|
./target/riscv64gc-unknown-linux-gnu/release/runner-rs
|
|
~~~
|