Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically release wasm build #5997

Merged
merged 1 commit into from
Apr 24, 2022
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: 2 additions & 0 deletions .github/workflows/wasm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: WebAssembly Publish

on:
workflow_dispatch:
release:
types: [published]

defaults:
run:
Expand Down
1 change: 0 additions & 1 deletion src/api/js/example-raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import { init, Z3_error_code } from './build/node-wrapper';
}
console.log('confirming error messages work:', Z3.get_error_msg(ctx, Z3.get_error_code(ctx)));


Z3.dec_ref(ctx, strAst);
Z3.del_context(ctx);

Expand Down
6 changes: 3 additions & 3 deletions src/api/js/scripts/make-ts-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ export async function init(initModule: any) {
return ctx;
},
${functions
.map(wrapFunction)
.filter(f => f != null)
.join(',\n')}
.map(wrapFunction)
.filter(f => f != null)
.join(',\n')}

}
};
Expand Down
11 changes: 5 additions & 6 deletions src/api/js/scripts/parse-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ for (let file of files) {
throw new Error(`extra text in parameter list ${JSON.stringify(text)}`);
}


if (name in defApis) {
throw new Error(`multiple defApi calls for ${name}`);
}
Expand All @@ -132,11 +131,11 @@ for (let file of files) {
types[match.groups.type] = match.groups.type;
}

// we don't have to pre-populate the types map with closure types
// use the Z3_DECLARE_CLOSURE to identify closure types
// for (let match of contents.matchAll(/Z3_DECLARE_CLOSURE\((?<type>[A-Za-z0-9_]+),/g)) {
// types[match.groups.type] = match.groups.type
// }
// we don't have to pre-populate the types map with closure types
// use the Z3_DECLARE_CLOSURE to identify closure types
// for (let match of contents.matchAll(/Z3_DECLARE_CLOSURE\((?<type>[A-Za-z0-9_]+),/g)) {
// types[match.groups.type] = match.groups.type
// }

// parse enum declarations
for (let idx = 0; idx < contents.length; ) {
Expand Down