optimize build time

This commit is contained in:
Simon Gardling 2022-07-03 15:20:01 -04:00
parent e3ec27ab40
commit da24718eed
4 changed files with 8 additions and 7 deletions

View File

@ -40,7 +40,7 @@ jobs:
override: true override: true
- name: Install fonttools - name: Install fonttools
run: sudo apt-get install -y fonttools run: sudo apt-get install -y fonttools libzstd-dev
- name: Install cargo-all-features - name: Install cargo-all-features
uses: actions-rs/install@v0.1 uses: actions-rs/install@v0.1

5
Cargo.lock generated
View File

@ -2128,9 +2128,9 @@ dependencies = [
[[package]] [[package]]
name = "shadow-rs" name = "shadow-rs"
version = "0.11.0" version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f47e98e36909e951f4da3908f4475f969bec92a41734dd92e883aaa11c10294b" checksum = "ed1b83da0a4e48d8dcc13ad177b64f2fc40097974f9bf176c2bcb702cabadff3"
dependencies = [ dependencies = [
"chrono", "chrono",
"const_format", "const_format",
@ -2979,4 +2979,5 @@ checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b"
dependencies = [ dependencies = [
"cc", "cc",
"libc", "libc",
"pkg-config",
] ]

View File

@ -42,7 +42,7 @@ egui = { git = "https://github.com/Titaniumtown/egui.git", default-features = fa
epaint = { git = "https://github.com/Titaniumtown/egui.git", default-features = false } epaint = { git = "https://github.com/Titaniumtown/egui.git", default-features = false }
emath = { git = "https://github.com/Titaniumtown/egui.git", default-features = false } emath = { git = "https://github.com/Titaniumtown/egui.git", default-features = false }
shadow-rs = { version = "0.11", default-features = false } shadow-rs = { version = "0.12", default-features = false }
const_format = { version = "0.2", default-features = false, features = ["fmt"] } const_format = { version = "0.2", default-features = false, features = ["fmt"] }
cfg-if = "1" cfg-if = "1"
ruzstd = { git = "https://github.com/KillingSpark/zstd-rs.git" } ruzstd = { git = "https://github.com/KillingSpark/zstd-rs.git" }
@ -56,7 +56,7 @@ serde = "1"
benchmarks = { path = "./benchmarks" } benchmarks = { path = "./benchmarks" }
[build-dependencies] [build-dependencies]
shadow-rs = "0.11" shadow-rs = "0.12"
epaint = { git = "https://github.com/Titaniumtown/egui.git", default-features = false } epaint = { git = "https://github.com/Titaniumtown/egui.git", default-features = false }
egui = { git = "https://github.com/Titaniumtown/egui.git", default-features = false, features = [ egui = { git = "https://github.com/Titaniumtown/egui.git", default-features = false, features = [
"serde", "serde",
@ -64,7 +64,7 @@ egui = { git = "https://github.com/Titaniumtown/egui.git", default-features = fa
bincode = "1.3" bincode = "1.3"
serde = "1" serde = "1"
serde_json = "1" serde_json = "1"
zstd = "0.11" zstd = { version = "0.11", default-features = false, features = ["pkg-config"] }
run_script = "0.9" run_script = "0.9"
json5 = "0.4" json5 = "0.4"
itertools = "0.10" itertools = "0.10"

View File

@ -9,7 +9,7 @@ rm -fr pkg | true
export RUSTFLAGS="--cfg=web_sys_unstable_apis" export RUSTFLAGS="--cfg=web_sys_unstable_apis"
if test "$1" == "" || test "$1" == "release"; then if test "$1" == "" || test "$1" == "release"; then
time cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --lib time cargo build --release --target wasm32-unknown-unknown -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --lib --timings
llvm-strip -s target/wasm32-unknown-unknown/release/ytbn_graphing_software.wasm llvm-strip -s target/wasm32-unknown-unknown/release/ytbn_graphing_software.wasm
export TYPE="release" export TYPE="release"
elif test "$1" == "debug"; then elif test "$1" == "debug"; then