Skip to content

Commit ef9d4d5

Browse files
committed
Merge remote-tracking branch 'origin/master' into jordan/10.6-node-release
2 parents a73f17f + e26657d commit ef9d4d5

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

.github/workflows/haskell-wasm.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ jobs:
114114

115115
- name: Restore cached deps
116116
run: |
117-
wget "https://agrius.feralhosting.com/palas/wasm-cache/b2db82f9f5a05c4d7712a1ec30b1d73d626738a52922d0c5ee9077563430763c.tar.xz"
118-
tar -xf b2db82f9f5a05c4d7712a1ec30b1d73d626738a52922d0c5ee9077563430763c.tar.xz
117+
wget "https://agrius.feralhosting.com/palas/wasm-cache/679206edf09804a8921df24d98147da457cd3dda35ee1a0642126d08f05bae0c.tar.xz"
118+
tar -xf 679206edf09804a8921df24d98147da457cd3dda35ee1a0642126d08f05bae0c.tar.xz
119119
rm -fr ~/.ghc-wasm/.cabal/store/
120120
mv store ~/.ghc-wasm/.cabal/
121121
@@ -184,6 +184,21 @@ jobs:
184184
- name: Build grpc bridge
185185
run: |
186186
nix build .#proto-js-bundle
187+
188+
- name: Prepare NPM package
189+
run: |
190+
cp cardano-wasm/lib-wrapper/* cardano-wasm/npm-wrapper/src/
191+
rm cardano-wasm/npm-wrapper/src/cardano-api.js
192+
cp result/cardano_node_grpc_web_pb.js cardano-wasm/npm-wrapper/src/
193+
cp -r result/node cardano-wasm/npm-wrapper/src/
194+
cd cardano-wasm/npm-wrapper
195+
npm install
196+
npm run build
197+
npm test
198+
npm pack
199+
200+
- name: Prepare wasm library
201+
run: |
187202
cp result/cardano_node_grpc_web_pb.js cardano-wasm/lib-wrapper/
188203
189204
- name: Upload built wasm library
@@ -193,6 +208,12 @@ jobs:
193208
path: cardano-wasm/lib-wrapper/*
194209
compression-level: 9
195210

211+
- name: Upload built NPM package
212+
uses: actions/upload-artifact@v4
213+
with:
214+
name: npm-package
215+
path: cardano-wasm/npm-wrapper/*.tgz
216+
196217
wasm-builds-complete:
197218
needs: [build]
198219
if: ${{ always() }}

flake.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)