From 6883b23af6688f4908f9ce35e7dda120611307b6 Mon Sep 17 00:00:00 2001 From: sevki Date: Thu, 6 Jun 2024 21:49:39 +0000 Subject: [PATCH] Add .github/workflows/roar.src --- .github/workflows/roar.src | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/roar.src diff --git a/.github/workflows/roar.src b/.github/workflows/roar.src new file mode 100644 index 0000000..d13bc60 --- /dev/null +++ b/.github/workflows/roar.src @@ -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) [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) + } +} \ No newline at end of file