diff --git a/.github/workflows/build_and_tests_reusable.yml b/.github/workflows/build_and_tests_reusable.yml index 198953e0..83c6bc7c 100644 --- a/.github/workflows/build_and_tests_reusable.yml +++ b/.github/workflows/build_and_tests_reusable.yml @@ -16,7 +16,7 @@ jobs: - name: build run: | cargo build --all --all-features - cargo build --all --all-features --release + cargo build --release --all --all-features - name: fmt check run: cargo fmt --all -- --check @@ -25,7 +25,7 @@ jobs: run: cargo check --all - name: tests - run: cargo test --all --all-features --release -- nocapture + run: cargo test --release --all --all-features -- nocapture - name: tests run: cargo publish --dry-run --allow-dirty diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 41ff11ab..44306824 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -1,9 +1,9 @@ name: clippy on: push: - branches: [ "main" ] + branches: [ main, release ] pull_request: - branches: [ main ] + branches: [ main, release ] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3913252f..bc1d43ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,9 +1,9 @@ name: tests on: push: - branches: [ main ] + branches: [ main, release ] pull_request: - branches: [ main ] + branches: [ main, release ] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/check-before-push.bat b/check-before-push.bat index 97209584..9c317bf8 100755 --- a/check-before-push.bat +++ b/check-before-push.bat @@ -1,4 +1,7 @@ -cargo build --all --all-features --release +cargo build --all --all-features +if %errorlevel% neq 0 exit /b %errorlevel% + +cargo build --release --all --all-features if %errorlevel% neq 0 exit /b %errorlevel% cargo fmt --all -- --check @@ -10,7 +13,7 @@ if %errorlevel% neq 0 exit /b %errorlevel% cargo clippy --all if %errorlevel% neq 0 exit /b %errorlevel% -cargo test --all --all-features --release +cargo test --release --all --all-features if %errorlevel% neq 0 exit /b %errorlevel% cargo publish --dry-run --allow-dirty diff --git a/check-before-push.sh b/check-before-push.sh index 0f001fa3..3b716755 100755 --- a/check-before-push.sh +++ b/check-before-push.sh @@ -3,9 +3,9 @@ set -e cargo build --all --all-features -cargo build --all --all-features --release +cargo build --release --all --all-features cargo fmt --all -- --check cargo check --all cargo clippy --all -cargo test --all --all-features --release +cargo test --release --all --all-features cargo publish --dry-run --allow-dirty