-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Expose more crates to JS (#8033)
- Loading branch information
Showing
57 changed files
with
1,999 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: "Build node.js binding" | ||
description: "Build a binding for node.js by using `settings` matrix" | ||
|
||
inputs: | ||
package: | ||
description: "Package name" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Setup node x64 | ||
uses: actions/setup-node@v3 | ||
if: matrix.settings.target != 'i686-pc-windows-msvc' | ||
with: | ||
node-version: 18 | ||
architecture: x64 | ||
|
||
- name: Setup node x86 | ||
uses: actions/setup-node@v3 | ||
if: matrix.settings.target == 'i686-pc-windows-msvc' | ||
with: | ||
node-version: 18 | ||
architecture: x86 | ||
|
||
- name: Install | ||
uses: actions-rs/toolchain@v1 | ||
if: ${{ !matrix.settings.docker }} | ||
with: | ||
profile: minimal | ||
override: true | ||
target: ${{ matrix.settings.target }} | ||
|
||
- uses: goto-bus-stop/setup-zig@v2 | ||
if: ${{ matrix.settings.target == 'armv7-unknown-linux-gnueabihf' }} | ||
with: | ||
version: 0.10.1 | ||
|
||
- shell: bash | ||
run: corepack enable | ||
|
||
- name: Install node dependencies | ||
shell: bash | ||
working-directory: "./packages/minifier" | ||
run: corepack yarn | ||
|
||
- name: Setup toolchain | ||
run: ${{ matrix.settings.setup }} | ||
if: ${{ matrix.settings.setup }} | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
working-directory: "./packages" | ||
run: | | ||
# curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
echo '/usr/local/cargo/bin' >> $GITHUB_PATH | ||
- name: Build in docker | ||
uses: addnab/docker-run-action@v3 | ||
if: ${{ matrix.settings.docker }} | ||
with: | ||
image: ${{ matrix.settings.docker }} | ||
options: -v ${{ env.HOME }}/.cargo/git:/root/.cargo/git -v ${{ env.HOME }}/.cargo/registry:/root/.cargo/registry -v ${{ github.workspace }}:/build -w /build | ||
run: >- | ||
yarn global add wasm-pack && | ||
${{ matrix.settings.build }} | ||
- name: Build | ||
if: ${{ !matrix.settings.docker }} | ||
run: ${{ matrix.settings.build }} | ||
shell: bash | ||
|
||
- run: ls -al ./packages/minifier | ||
shell: bash | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: | | ||
minifier-${{ matrix.settings.target }} | ||
path: | | ||
./packages/minifier/minifier* | ||
if-no-files-found: error |
Oops, something went wrong.
186ecfa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
276181
ns/iter (± 4146
)276721
ns/iter (± 6210
)1.00
es/full/minify/libraries/antd
1293545227
ns/iter (± 11288965
)1285832357
ns/iter (± 12153756
)1.01
es/full/minify/libraries/d3
269395105
ns/iter (± 8432722
)270680100
ns/iter (± 3067727
)1.00
es/full/minify/libraries/echarts
1028602173
ns/iter (± 3073810
)1034147287
ns/iter (± 4018881
)0.99
es/full/minify/libraries/jquery
83667668
ns/iter (± 299873
)83346969
ns/iter (± 109023
)1.00
es/full/minify/libraries/lodash
96752784
ns/iter (± 221180
)96544472
ns/iter (± 188095
)1.00
es/full/minify/libraries/moment
49539372
ns/iter (± 66026
)49280804
ns/iter (± 115809
)1.01
es/full/minify/libraries/react
17919526
ns/iter (± 64305
)17882682
ns/iter (± 80684
)1.00
es/full/minify/libraries/terser
216070449
ns/iter (± 1291691
)214825610
ns/iter (± 1737310
)1.01
es/full/minify/libraries/three
380225445
ns/iter (± 3578301
)380392231
ns/iter (± 1724691
)1.00
es/full/minify/libraries/typescript
2604078344
ns/iter (± 7419976
)2581755264
ns/iter (± 18434478
)1.01
es/full/minify/libraries/victory
557935705
ns/iter (± 3938313
)565202909
ns/iter (± 5042799
)0.99
es/full/minify/libraries/vue
118455479
ns/iter (± 217848
)117959671
ns/iter (± 168678
)1.00
es/full/codegen/es3
34622
ns/iter (± 232
)34115
ns/iter (± 139
)1.01
es/full/codegen/es5
34503
ns/iter (± 249
)33998
ns/iter (± 105
)1.01
es/full/codegen/es2015
34715
ns/iter (± 90
)34119
ns/iter (± 103
)1.02
es/full/codegen/es2016
34880
ns/iter (± 203
)34020
ns/iter (± 117
)1.03
es/full/codegen/es2017
34893
ns/iter (± 156
)33987
ns/iter (± 183
)1.03
es/full/codegen/es2018
34809
ns/iter (± 183
)34061
ns/iter (± 166
)1.02
es/full/codegen/es2019
34918
ns/iter (± 201
)33954
ns/iter (± 154
)1.03
es/full/codegen/es2020
34951
ns/iter (± 225
)34095
ns/iter (± 140
)1.03
es/full/all/es3
166231253
ns/iter (± 812966
)163536715
ns/iter (± 848902
)1.02
es/full/all/es5
159383593
ns/iter (± 648656
)156870098
ns/iter (± 1035393
)1.02
es/full/all/es2015
118107397
ns/iter (± 1026622
)116050191
ns/iter (± 650928
)1.02
es/full/all/es2016
116132310
ns/iter (± 918345
)115686831
ns/iter (± 796787
)1.00
es/full/all/es2017
116055842
ns/iter (± 714070
)114922968
ns/iter (± 1153785
)1.01
es/full/all/es2018
114590698
ns/iter (± 1641652
)113076497
ns/iter (± 699821
)1.01
es/full/all/es2019
113685970
ns/iter (± 773237
)112606016
ns/iter (± 785839
)1.01
es/full/all/es2020
109906421
ns/iter (± 691829
)107782843
ns/iter (± 543518
)1.02
es/full/parser
500183
ns/iter (± 5959
)482436
ns/iter (± 5552
)1.04
es/full/base/fixer
17390
ns/iter (± 92
)17875
ns/iter (± 105
)0.97
es/full/base/resolver_and_hygiene
81578
ns/iter (± 178
)80623
ns/iter (± 421
)1.01
serialization of serde
286
ns/iter (± 1
)284
ns/iter (± 3
)1.01
This comment was automatically generated by workflow using github-action-benchmark.