mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-09 18:18:49 +00:00
feat(wasm): support "pure JS" mode
Closes #1159 This uses the binaryen tool wasm2js to compile the Anubis WASM blobs to JavaScript. This produces biblically large (520Ki) outputs when you inline both hashx and sha256 solvers, but this is a tradeoff that I'm willing to accept. The performance is good enough in my testing with JIT enabled. I fear that this may end up being terrible with JIT disabled. I have no idea if this will work on big endian or not. Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
3
.github/workflows/docker-pr.yml
vendored
3
.github/workflows/docker-pr.yml
vendored
@@ -50,6 +50,9 @@ jobs:
|
||||
cache: false
|
||||
target: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@77f25f9d7d30f09667a2535888bf9516b31a4cd7 # v1.0.0
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
|
||||
|
||||
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
@@ -60,6 +60,9 @@ jobs:
|
||||
cache: false
|
||||
target: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@77f25f9d7d30f09667a2535888bf9516b31a4cd7 # v1.0.0
|
||||
|
||||
- name: Log into registry
|
||||
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
|
||||
with:
|
||||
|
||||
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
@@ -63,6 +63,9 @@ jobs:
|
||||
cache: false
|
||||
target: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@77f25f9d7d30f09667a2535888bf9516b31a4cd7 # v1.0.0
|
||||
|
||||
- name: Cache playwright binaries
|
||||
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
|
||||
id: playwright-cache
|
||||
|
||||
3
.github/workflows/package-builds-stable.yml
vendored
3
.github/workflows/package-builds-stable.yml
vendored
@@ -64,6 +64,9 @@ jobs:
|
||||
cache: false
|
||||
target: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@77f25f9d7d30f09667a2535888bf9516b31a4cd7 # v1.0.0
|
||||
|
||||
- name: install node deps
|
||||
run: |
|
||||
npm ci
|
||||
|
||||
@@ -65,6 +65,9 @@ jobs:
|
||||
cache: false
|
||||
target: wasm32-unknown-unknown
|
||||
|
||||
- name: Setup Binaryen
|
||||
uses: Aandreba/setup-binaryen@77f25f9d7d30f09667a2535888bf9516b31a4cd7 # v1.0.0
|
||||
|
||||
- name: install node deps
|
||||
run: |
|
||||
npm ci
|
||||
|
||||
Reference in New Issue
Block a user