This commit is contained in:
parent
ca6efa3600
commit
f44833954d
2 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,9 @@ steps:
|
|||
- apt-get -y update
|
||||
- apt-get -y install parallel brotli
|
||||
- wget https://github.com/mozilla/sccache/releases/download/v0.7.7/sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz
|
||||
- tar xzf sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz
|
||||
- wget https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-linux.tar.gz -o binaryen.tar.gz
|
||||
- tar -xzf binaryen.tar.gz -C /usr
|
||||
- tar -xzf sccache-v0.7.7-x86_64-unknown-linux-musl.tar.gz
|
||||
- mv sccache-v0.7.7-x86_64-unknown-linux-musl/sccache /usr/bin/sccache
|
||||
- chmod +x /usr/bin/sccache
|
||||
- sccache --start-server
|
||||
|
|
1
opt.sh
1
opt.sh
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
wasm=dist/portfolio-*_bg.wasm
|
||||
js=dist/portfolio-*.js
|
||||
wasm-opt -O2 --fast-math $wasm -o $wasm
|
||||
find dist/ \
|
||||
-name "*.js" -o \
|
||||
-name "*.pdf" -o \
|
||||
|
|
Loading…
Reference in a new issue