-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
746 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ jobs: | |
- js-test | ||
strategy: | ||
matrix: | ||
package-type: [ "nodejs", "bundler", "web" ] | ||
package-type: [ "nodejs", "bundler", "web", "web-parallel" ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Clone | ||
|
@@ -150,19 +150,33 @@ jobs: | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
- uses: actions-rs/toolchain@v1 | ||
name: Setup Rust | ||
if: matrix.package-type != 'web-parallel' | ||
with: | ||
toolchain: nightly | ||
override: true | ||
- uses: actions-rs/toolchain@v1 | ||
name: Setup Rust | ||
if: matrix.package-type == 'web-parallel' | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: rust-src | ||
- uses: jetli/[email protected] | ||
name: Install WasmPack | ||
with: | ||
version: 'latest' | ||
- name: Install npm dependencies | ||
run: yarn install | ||
- name: Build Wasm | ||
if: matrix.package-type != 'web-parallel' | ||
run: | | ||
wasm-pack build --target ${{ matrix.package-type }} -- --features wasm-pack --no-default-features | ||
rm pkg/{package.json,README.md,.gitignore} | ||
- name: Build Wasm | ||
if: matrix.package-type == 'web-parallel' | ||
run: | | ||
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' wasm-pack build --target web -- --features wasm-pack,safe,wasm-parallel --no-default-features -Z build-std=panic_abort,std | ||
rm pkg/{package.json,README.md,.gitignore} | ||
- name: Build Ts | ||
run: yarn run build:ts:${{ matrix.package-type }} | ||
- name: Assemble | ||
|
@@ -191,6 +205,10 @@ jobs: | |
with: | ||
name: pkg-web | ||
path: pkg.web | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: pkg-web-parallel | ||
path: pkg.web-parallel | ||
- uses: actions/upload-artifact@v2 | ||
name: Upload Artifacts | ||
with: | ||
|
@@ -199,6 +217,7 @@ jobs: | |
pkg.bundler/ | ||
pkg.nodejs/ | ||
pkg.web/ | ||
pkg.web-parallel/ | ||
package.json | ||
index.browser.js | ||
LICENCE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,7 @@ jobs: | |
- js-test | ||
strategy: | ||
matrix: | ||
package-type: [ "nodejs", "bundler", "web" ] | ||
package-type: [ "nodejs", "bundler", "web", "web-parallel" ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Clone | ||
|
@@ -153,19 +153,33 @@ jobs: | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
- uses: actions-rs/toolchain@v1 | ||
name: Setup Rust | ||
if: matrix.package-type != 'web-parallel' | ||
with: | ||
toolchain: nightly | ||
override: true | ||
- uses: actions-rs/toolchain@v1 | ||
name: Setup Rust | ||
if: matrix.package-type == 'web-parallel' | ||
with: | ||
toolchain: nightly | ||
override: true | ||
components: rust-src | ||
- uses: jetli/[email protected] | ||
name: Install WasmPack | ||
with: | ||
version: 'latest' | ||
- name: Install npm dependencies | ||
run: yarn install | ||
- name: Build Wasm | ||
if: matrix.package-type != 'web-parallel' | ||
run: | | ||
wasm-pack build --target ${{ matrix.package-type }} -- --features wasm-pack --no-default-features | ||
rm pkg/{package.json,README.md,.gitignore} | ||
- name: Build Wasm | ||
if: matrix.package-type == 'web-parallel' | ||
run: | | ||
RUSTFLAGS='-C target-feature=+atomics,+bulk-memory,+mutable-globals' wasm-pack build --target web -- --features wasm-pack,safe,wasm-parallel --no-default-features -Z build-std=panic_abort,std | ||
rm pkg/{package.json,README.md,.gitignore} | ||
- name: Build Ts | ||
run: yarn run build:ts:${{ matrix.package-type }} | ||
- name: Assemble | ||
|
@@ -194,6 +208,10 @@ jobs: | |
with: | ||
name: pkg-web | ||
path: pkg.web | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: pkg-web-parallel | ||
path: pkg.web-parallel | ||
- uses: actions/upload-artifact@v2 | ||
name: Upload Artifacts | ||
with: | ||
|
@@ -202,6 +220,7 @@ jobs: | |
pkg.bundler/ | ||
pkg.nodejs/ | ||
pkg.web/ | ||
pkg.web-parallel/ | ||
package.json | ||
index.browser.js | ||
LICENCE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
/pkg.nodejs | ||
/pkg.dist | ||
/pkg.web | ||
/pkg.web-parallel | ||
/dist | ||
/package | ||
.pnp.* | ||
|
Oops, something went wrong.