Skip to content

Commit

Permalink
Fix npm run on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aborg-dev committed Feb 16, 2024
1 parent 547d3a9 commit 88288cd
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,10 @@ jobs:
cache: 'npm'
cache-dependency-path: tests/zkasm/package-lock.json
- run: npm ci --prefix tests/zkasm
- run: node -v
- run: npm -v
- run: which node
- run: which npm

# Install targets in order to build various tests throughout the repo
- run: rustup target add wasm32-wasi wasm32-unknown-unknown ${{ matrix.target }}
Expand Down
29 changes: 26 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cranelift/filetests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ regex = { workspace = true }
wasmtime = { workspace = true, features = ["cranelift", "runtime"] }
walkdir = { workspace = true }
tempfile = { workspace = true }
which = "6.0.0"
4 changes: 3 additions & 1 deletion cranelift/filetests/src/zkasm_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ pub fn run_zkasm_path(input_path: &Path) -> anyhow::Result<Vec<ExecutionResult>>
)?;

let mut output_file = NamedTempFile::new()?;
let output = std::process::Command::new("npm")
let npm_path = which::which("npm")?;
dbg!(npm_path);
let output = std::process::Command::new(npm_path)
.args([
"--prefix",
"../../tests/zkasm",
Expand Down

0 comments on commit 88288cd

Please sign in to comment.