Fix CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Isaac Mills 2024-03-18 18:58:17 -04:00
parent ca6efa3600
commit f44833954d
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
2 changed files with 4 additions and 1 deletions

View file

@ -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
View file

@ -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 \