From 7734a5d8b7728fd62f2a7e622ff75b1cd913372f Mon Sep 17 00:00:00 2001 From: Adaline Simonian Date: Fri, 17 Jan 2025 19:08:15 -0800 Subject: [PATCH] ci: run tests in release mode --- .github/workflows/main.yml | 4 ++-- .github/workflows/pr.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f26f6a..c4796f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,11 +67,11 @@ jobs: - name: Check clippy shell: bash run: | - cargo clippy --all-targets --all-features -- \ + cargo clippy --release --all-targets --all-features -- \ -D clippy::suspicious -D clippy::style -D clippy::complexity \ -D clippy::perf -D clippy::dbg_macro -D clippy::todo \ -D clippy::unimplemented -D warnings - name: Test if: always() && (matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu') || (matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc') || (matrix.os == 'macos-latest' && matrix.target == 'x86_64-apple-darwin') - run: cargo test --target ${{ matrix.target }} + run: cargo test --release --target ${{ matrix.target }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ddb1b87..83c9709 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -71,11 +71,11 @@ jobs: - name: Check clippy shell: bash run: | - cargo clippy --all-targets --all-features -- \ + cargo clippy --release --all-targets --all-features -- \ -D clippy::suspicious -D clippy::style -D clippy::complexity \ -D clippy::perf -D clippy::dbg_macro -D clippy::todo \ -D clippy::unimplemented -D warnings - name: Test if: always() && (matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu') || (matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc') || (matrix.os == 'macos-latest' && matrix.target == 'x86_64-apple-darwin') - run: cargo test --target ${{ matrix.target }} + run: cargo test --release --target ${{ matrix.target }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13d5cf9..a16fc8d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: - name: Check clippy run: | - cargo clippy --all-targets --all-features -- \ + cargo clippy --release --all-targets --all-features -- \ -D clippy::suspicious -D clippy::style -D clippy::complexity \ -D clippy::perf -D clippy::dbg_macro -D clippy::todo \ -D clippy::unimplemented -D warnings @@ -82,7 +82,7 @@ jobs: - name: Test if: (matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu') || (matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc') || (matrix.os == 'macos-latest' && matrix.target == 'x86_64-apple-darwin') - run: cargo test --target ${{ matrix.target }} + run: cargo test --release --target ${{ matrix.target }} - name: Rename Binary shell: bash