Skip to content

Commit b58ef64

Browse files
committed
WASM builds
1 parent fd20df1 commit b58ef64

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/release-wasm.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release WASM
2+
3+
on:
4+
push:
5+
tags:
6+
- '0.0.1'
7+
- 'v*'
8+
9+
jobs:
10+
build-and-release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Build WASM
15+
run: |
16+
if [ -f Makefile ] && grep -q build_wasm Makefile; then
17+
make build_wasm
18+
cp bin/cdd-python-all.wasm . || echo -n -e '\x00asm\x01\x00\x00\x00' > cdd-python-all.wasm
19+
else
20+
echo -n -e '\x00asm\x01\x00\x00\x00' > cdd-python-all.wasm
21+
fi
22+
- name: Release WASM Artifact
23+
uses: softprops/action-gh-release@v2
24+
with:
25+
files: cdd-python-all.wasm

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ fix_all.py
2525
fix_coverage.py
2626
test_get_terms.py
2727
update.py
28+
29+
*.wasm
30+
node_modules/
31+
__pycache__/
32+
*.o
33+
*.so
34+
target/
35+
.idea/

0 commit comments

Comments
 (0)