From 20e82880ff0e460202eb968531ae885cd01cdd51 Mon Sep 17 00:00:00 2001 From: Khor Shu Heng <32997938+khorshuheng@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:03:46 +0800 Subject: [PATCH] chore: remove unused step in rust CI, allow cache on failure, show container logs (#5770) --- .github/workflows/rust_ci.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yaml index f61925f9a6..47781a2105 100644 --- a/.github/workflows/rust_ci.yaml +++ b/.github/workflows/rust_ci.yaml @@ -8,6 +8,7 @@ on: - "release/*" paths: - "frontend/rust-lib/**" + - ".github/workflows/rust_ci.yaml" pull_request: branches: @@ -52,16 +53,10 @@ jobs: override: true components: rustfmt, clippy profile: minimal - - - name: Install prerequisites - working-directory: frontend - run: | - cargo install --force cargo-make - cargo install --force duckscript_cli - - uses: Swatinem/rust-cache@v2 with: prefix-key: "ubuntu-latest" + cache-on-failure: true workspaces: | frontend/rust-lib @@ -106,6 +101,12 @@ jobs: run: cargo clippy --all-targets -- -D warnings working-directory: frontend/rust-lib + - name: "Debug: show Appflowy-Cloud container logs" + if: failure() + working-directory: AppFlowy-Cloud + run: | + docker compose logs appflowy_cloud + - name: Clean up Docker images run: | docker image prune -af