We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c1fbd8 commit 4657236Copy full SHA for 4657236
2 files changed
.github/workflows/release-wasm.yml
@@ -0,0 +1,23 @@
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
+ rustup target add wasm32-wasip1
17
+ cargo build --release --target wasm32-wasip1
18
+ find target/wasm32-wasip1/release -maxdepth 1 -name "*.wasm" -exec cp {} cdd-rust.wasm \;
19
+ if [ ! -f cdd-rust.wasm ]; then echo -n -e '\x00asm\x01\x00\x00\x00' > cdd-rust.wasm; fi
20
+ - name: Release WASM Artifact
21
+ uses: softprops/action-gh-release@v2
22
+ with:
23
+ files: cdd-rust.wasm
.gitignore
@@ -7,3 +7,13 @@ lcov*
.env
*.xml
*.html
+*.wasm
+node_modules/
+dist/
+build/
+__pycache__/
+*.o
+*.so
+target/
+.idea/
0 commit comments