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
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,3 @@ jobs:
run: make -C tests/simple run-base
- name: Build and run wevaled 'simple' test
run: make -C tests/simple run-wevaled

test-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm install
working-directory: npm/weval
- run: npm test
working-directory: npm/weval
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "weval"
description = "The WebAssembly partial evaluator"
repository = "https://github.com/bytecodealliance/weval"
version = "0.3.3"
version = "0.3.4"
authors = ["Chris Fallin <chris@cfallin.org>"]
license = "Apache-2.0 WITH LLVM-exception"
edition = "2021"
Expand Down
13 changes: 3 additions & 10 deletions npm/weval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ import xz from "@napi-rs/lzma/xz";

const __dirname = dirname(fileURLToPath(import.meta.url));

const TAG = "v0.3.3";
const TAG = "v0.3.4";

/**
* Download Weval from GitHub releases
*
* @param {object} [opts]
* @param {string} [opts.downloadDir] - Directory to which the binary should be downloaded
* @returns {string} path to the downloaded binary on disk
*/
export async function getWeval(opts) {
async function getWeval() {
const knownPlatforms = {
"win32 x64 LE": "x86_64-windows",
"darwin arm64 LE": "aarch64-macos",
Expand All @@ -45,7 +38,7 @@ export async function getWeval(opts) {
const assetSuffix = platform == "win32" ? "zip" : "tar.xz";
const exeSuffix = platform == "win32" ? ".exe" : "";

const exeDir = join(opts && opts.downloadDir ? opts.downloadDir : __dirname, platformName);
const exeDir = join(__dirname, platformName);
const exe = join(exeDir, `weval${exeSuffix}`);

// If we already have the executable installed, then return it
Expand Down
3 changes: 1 addition & 2 deletions npm/weval/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "@bytecodealliance/weval",
"version": "0.3.3",
"version": "0.3.4",
"description": "The WebAssembly partial evaluator",
"type": "module",
"scripts": {
"test": "node ./tests/index.mjs",
"version": "node ./update.js $npm_package_version"
},
"dependencies": {
Expand Down
17 changes: 0 additions & 17 deletions npm/weval/tests/download.mjs

This file was deleted.

3 changes: 0 additions & 3 deletions npm/weval/tests/index.mjs

This file was deleted.

Loading