From b0ad5ee63da48665487ccfca49fa0eaa5d3e0efd Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 5 Jan 2023 23:10:06 +0300 Subject: [PATCH] attempt to reduce build size for ci --- .github/workflows/ci.yml | 2 +- Cargo.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d2fe02f0..9124c75a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - run: rustc --version && cargo --version - name: Build # Use build instead of check since it needs to be built for tests anyway - run: cargo build --verbose --workspace --all-targets --all-features + run: cargo build --verbose --workspace --all-targets --all-features --profile github-ci - name: Test # Currently --all-targets *disables* running doc-tests # and none of the other targets such as examples *currently* have tests diff --git a/Cargo.toml b/Cargo.toml index dc582a300..07ce7bd62 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,3 +69,9 @@ glutin = {version = "0.29.0", features = ["serde"] } [target.'cfg(target_arch = "wasm32")'.dependencies] winit = { version = "0.27.1", features = ["serde"] } + +[profile.github-ci] +inherits = "dev" +strip = "symbols" +debug = false +opt-level = "s" \ No newline at end of file