Skip to content

Commit

Permalink
test wasm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths committed Nov 5, 2023
1 parent f4229b5 commit 36d3917
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/wasm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ jobs:
build:
runs-on: ubuntu-20.04

defaults:
run:
working-directory: ./src/wasm_package

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -26,20 +22,19 @@ jobs:
- run: sudo sed -i 's/azure\.//' /etc/apt/sources.list

# The deps script was written for Debian (11), but works as-is on Ubuntu too
- run: sudo ../../contrib/bullseye_deps.sh
- run: sudo contrib/bullseye_deps.sh

# Build NPM package into a tgz file (pack internally triggers the build/prepare script)
- run: npm install && npm pack --foreground-scripts
- run: cd src/wasm_package && npm install && npm pack --foreground-scripts
name: Build & Pack

# Report the SHA256 digest of the final package. This should be deterministic (including generated WASM),
# so it should match the package published to the NPM registry and can be used to cross-check its integrity.
- run: 'echo SHA256 digest: && sha256sum wallycore-*.tgz'

- run: npm test
- run: cd src/wasm_package && npm test

- uses: actions/upload-artifact@v3
with:
name: libwally-npm
path: src/wasm_package/wallycore-*.tgz
# upload-artifact doesn't seem to take the working-directory setting into account

0 comments on commit 36d3917

Please sign in to comment.