Add .github/workflows/roar.src
Some checks failed
Deploy mdBook site to Pages / build (push) Waiting to run
Deploy mdBook site to Pages / deploy (push) Blocked by required conditions
Rust / build (push) Waiting to run
rust-clippy analyze / Run rust-clippy analyzing (push) Failing after 10m58s

This commit is contained in:
sevki 2024-06-06 21:49:39 +00:00
parent 90d3182470
commit 6883b23af6

26
.github/workflows/roar.src vendored Normal file
View file

@ -0,0 +1,26 @@
use { native_fs, native_exec } from host
use { fs } from std
struct Innitguv {
fs: native_fs,
exec: native_exec
current_pid: i32
}
impl Exec for Innitguv {
fn exec(&self, arg0: str, args: vec<str>) [nd, exec, await] -> i32 {
let path = arg0
let pid = self.exec.exec(path, args)
if pid == -1 {
return -1
}
self.current_pid = pid
yield()
}
}
impl Actor for Innitguv {
fn recv(&self, msg: Message) [recv, await] {
self.exec(msg.path, msg.args)
}
}