From 41e99174faac9610b1fdc4029711ecb130462e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCn=20=C3=96zerk?= Date: Wed, 14 Feb 2024 22:57:45 +0300 Subject: [PATCH] improve ci for space (#118) --- .github/workflows/cargo-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cargo-tests.yml b/.github/workflows/cargo-tests.yml index 3c62c30..39c85d9 100644 --- a/.github/workflows/cargo-tests.yml +++ b/.github/workflows/cargo-tests.yml @@ -26,6 +26,8 @@ env: CARGO_TERM_COLOR: always # Remove unnecessary WASM build artifacts WASM_BUILD_CLEAN_TARGET: 1 + # stripping symbols and optimizing for binary size + RUSTFLAGS: -C strip=symbols -C opt-level=s jobs: clippy-fmt-test: @@ -69,16 +71,16 @@ jobs: run: cargo fmt --all -- --check - name: Run tests - run: cargo test + run: cargo test --release - name: Check build run: cargo check --release - name: Check clippy - run: cargo clippy --locked --all-targets -- -D warnings + run: cargo clippy --release --locked --all-targets -- -D warnings - name: Check Documentation - run: cargo doc --locked --all --no-deps + run: cargo doc --release --locked --all --no-deps env: RUSTDOCFLAGS: "-D rustdoc::broken-intra-doc-links -D rustdoc::private_intra_doc_links"