forked from web-infra-dev/rspack
35 lines (33 loc) · 963 Bytes
/
bundle-stats.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Bundle stats
on:
push:
branches:
- main
permissions:
contents: write
deployments: write
repository-projects: write
jobs:
bundle-stats:
name: Bundle stats compare
runs-on: [self-hosted, rspack-common, ARM64]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
architecture: "arm64"
- name: Install dependencies && and build lib
run: |
node -e "console.log(process.arch)"
pnpm install
pnpm run build:cli:release
- name: Create rspack stats
run: pnpm --filter example-arco-design-pro bundle-stats
- name: Send rspack stats to RelativeCI
uses: relative-ci/agent-action@v2
with:
webpackStatsFile: ./examples/arco-pro/rspack-stats.json
key: ${{ secrets.RELATIVE_CI_KEY }}
token: ${{ secrets.GITHUB_TOKEN }}