mirror of
https://github.com/yewprint/yewprint
synced 2024-11-22 03:23:03 +00:00
Temporary remove the wasm-size report (#86)
This commit is contained in:
parent
29c685cfe2
commit
cd2abd5b95
1 changed files with 0 additions and 35 deletions
35
.github/workflows/pr.yml
vendored
35
.github/workflows/pr.yml
vendored
|
@ -47,24 +47,6 @@ jobs:
|
|||
command: build
|
||||
args: --target wasm32-unknown-unknown
|
||||
|
||||
build-main:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
size: ${{ steps.build.outputs.size }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: main
|
||||
- name: Install wasm-pack
|
||||
run: |
|
||||
curl -sSL https://github.com/rustwasm/wasm-pack/releases/download/v0.9.1/wasm-pack-v0.9.1-x86_64-unknown-linux-musl.tar.gz \
|
||||
| tar xzO wasm-pack-v0.9.1-x86_64-unknown-linux-musl/wasm-pack \
|
||||
> $HOME/.cargo/bin/wasm-pack
|
||||
chmod +x $HOME/.cargo/bin/wasm-pack
|
||||
- name: Build (Release)
|
||||
id: build
|
||||
run: "./build.sh --release && echo ::set-output name=size::`cat public/wasm_bg.wasm | wc -c`"
|
||||
|
||||
checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -77,20 +59,3 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --all-features -- -D warnings
|
||||
|
||||
report-wasm-size:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build
|
||||
- build-main
|
||||
steps:
|
||||
- uses: mshick/add-pr-comment@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
message: |
|
||||
**Compiled size report**
|
||||
|
||||
| File name | Old Size | New Size |
|
||||
| --- | --- | --- |
|
||||
| public/wasm_bg.wasm | ${{needs.build-main.outputs.size}} | ${{needs.build.outputs.size}} |
|
||||
|
|
Loading…
Reference in a new issue