Skip to content
Merged
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
2 changes: 0 additions & 2 deletions .github/workflows/rust-interpreter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ jobs:
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core &
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
wait
# todo: do this in rust
ollama pull granite3.2:2b
- name: Run interpreter tests
run: npm run test:interpreter
3 changes: 2 additions & 1 deletion pdl-live-react/src-tauri/src/pdl/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,8 @@ pub async fn run(
debug: bool,
stream: bool,
) -> Interpretation {
crate::pdl::pull::pull_if_needed(&program).await?;

let mut interpreter = Interpreter::new();
interpreter.debug = debug;
interpreter.stream = stream;
Expand Down Expand Up @@ -1007,7 +1009,6 @@ pub async fn run_file(source_file_path: &str, debug: bool, stream: bool) -> Inte
let cwd = path.parent().and_then(|cwd| Some(cwd.to_path_buf()));
let program = parse_file(&path)?;

crate::pdl::pull::pull_if_needed(&program).await?;
run(&program, cwd, debug, stream).await
}

Expand Down