From 45ff955beb009f8075f6cd8c5cd2bbb3b4df803a Mon Sep 17 00:00:00 2001 From: 4meta5 Date: Sun, 3 Dec 2023 20:50:45 -0500 Subject: [PATCH 1/2] fix ci to check build and run tests in std --- .github/workflows/ci-tests.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index d5ec557..a35f810 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -22,7 +22,7 @@ env: # Not needed in CI, should make things a bit faster CARGO_INCREMENTAL: 0 CARGO_TERM_COLOR: always - # Remove unnecessary WASM build artefacts + # Remove unnecessary WASM build artifacts WASM_BUILD_CLEAN_TARGET: 1 jobs: @@ -55,13 +55,16 @@ jobs: - name: install rust toolchain uses: actions-rust-lang/setup-rust-toolchain@v1 - - name: cargo fmt + - name: Check format run: cargo fmt --all -- --check - - name: cargo test --release --locked + - name: Run tests run: cargo test - - name: cargo clippy --release --locked + - name: Check build + run: cargo build --release + + - name: Check clippy run: cargo clippy --locked --all-targets -- -D warnings - name: Check Documentation From 46e838cd9b8d98fada528e63d11191f6c2c74c32 Mon Sep 17 00:00:00 2001 From: 4meta5 Date: Mon, 4 Dec 2023 07:53:20 -0500 Subject: [PATCH 2/2] change build to check without timing the CI --- .github/workflows/ci-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a35f810..32efa15 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -62,7 +62,7 @@ jobs: run: cargo test - name: Check build - run: cargo build --release + run: cargo check --release - name: Check clippy run: cargo clippy --locked --all-targets -- -D warnings