mirror of
https://github.com/pezkuwichain/pezkuwi-wasm.git
synced 2026-10-28 14:29:51 +00:00
The package shipped only compiled output, and no repository held its source. lib/ is @scure/sr25519 0.2.0 with three edits made directly in the compiled files: signing context 'substrate' -> 'bizinikiwi' and the two header comment lines. index.ts is upstream's 0.2.0 source with the same edits; compiled with its own tsconfig it reproduces lib/*.js and lib/*.d.ts byte for byte. Only the source maps change, since the hand-edited ones still described upstream's file. - index.ts, tsconfig.json, tsconfig.cjs.json, upstream MIT LICENSE - yarn build:scure-sr25519 rebuilds lib/ - scripts/check-scure-sr25519.sh, run in CI, fails when lib/ is not a build of index.ts - README: what differs from upstream, how to build; it said the context was 'bizinikiwi' instead of 'bizinikiwi'
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, dev]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'yarn'
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Build JavaScript
|
|
run: yarn build:js
|
|
|
|
# The package.json each build/ directory holds is what npm receives:
|
|
# every entry point must name a file that is there, with no ./build/ or
|
|
# ./cjs/cjs/ paths and no string spread into exports (what broke the
|
|
# January 2026 releases and 7.5.19).
|
|
- name: Check built manifests
|
|
run: python3 scripts/check-built-manifests.py . wasm-util wasm-bridge wasm-crypto-asmjs wasm-crypto-wasm wasm-crypto-init wasm-crypto
|
|
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
# scure-sr25519 ships committed compiled output; it must be a build of
|
|
# the index.ts beside it, not hand-edited JavaScript.
|
|
- name: Check scure-sr25519 is built from its source
|
|
run: ./scripts/check-scure-sr25519.sh
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'yarn'
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --immutable
|
|
|
|
- name: Run Rust tests
|
|
run: yarn test:wasm-crypto:rust
|