Skip to content

Commit

Permalink
automatically release wasm build (#5997)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored Apr 24, 2022
1 parent 24baf56 commit dc18b47
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
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

0 comments on commit dc18b47

Please sign in to comment.