File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 working-directory : rustmail_panel
4040 run : trunk build --release --dist ../rustmail/static --config Trunk.toml
4141
42+ - name : Optimize WASM
43+ run : |
44+ cargo install wasm-opt --locked
45+ for f in rustmail/static/*.wasm; do
46+ wasm-opt -Oz "$f" -o "$f.tmp"
47+ mv "$f.tmp" "$f"
48+ done
49+
4250 - name : Build Rust backend
4351 run : cargo build --verbose -p rustmail
4452
@@ -100,6 +108,15 @@ jobs:
100108 working-directory : rustmail_panel
101109 run : trunk build --release --dist ../rustmail/static --config Trunk.toml
102110
111+ - name : Optimize WASM
112+ run : |
113+ cargo install wasm-opt --locked
114+ for f in rustmail/static/*.wasm; do
115+ wasm-opt -Oz "$f" -o "$f.tmp"
116+ mv "$f.tmp" "$f"
117+ done
118+ shell : bash
119+
103120 - name : Verify static files were created
104121 run : ls rustmail/static
105122 shell : bash
You can’t perform that action at this time.
0 commit comments