Skip to content

Commit 9dd7d00

Browse files
committed
ci: add output size build
1 parent baeabb6 commit 9dd7d00

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/size.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "output size"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: samueldr/lix-gha-installer-action@v1
13+
- run: nix develop -c ci/build.sh
14+
- name: network size
15+
run: ls dist/*/*.{br,woff2} | sort -t/ -sk3,3 | xargs du --apparent-size -ch
16+
- name: estimated memory size (data only)
17+
run: ls dist/*/*.bin | sort -t/ -sk3,3 | xargs du --apparent-size -ch

ci/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
npm install
4+
make init
5+
make init-nixos
6+
make assets
7+
npm run build

0 commit comments

Comments
 (0)