Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

ci: cache target (#2711)

Nathan.fooo5b5980044936
diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml
index c834ba19bd..28f0dc212a 100644
--- a/.github/workflows/flutter_ci.yaml
+++ b/.github/workflows/flutter_ci.yaml
@@ -67,6 +67,8 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.os }}
+ workspaces: |
+ frontend/rust-lib
- uses: davidB/rust-cargo-make@v1
with:
diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yaml
index cd155fcf89..87ef9792f0 100644
--- a/.github/workflows/rust_ci.yaml
+++ b/.github/workflows/rust_ci.yaml
@@ -56,7 +56,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
- prefix-key: ${{ matrix.job.os }}
+ prefix-key: 'ubuntu-latest'
+ workspaces: |
+ frontend/rust-lib
- name: Build FlowySDK
working-directory: frontend
diff --git a/.github/workflows/tauri_ci.yaml b/.github/workflows/tauri_ci.yaml
index fc4adb27ff..ba92bac1ae 100644
--- a/.github/workflows/tauri_ci.yaml
+++ b/.github/workflows/tauri_ci.yaml
@@ -15,8 +15,8 @@ jobs:
strategy:
fail-fast: false
matrix:
-# platform: [macos-latest, ubuntu-20.04, windows-latest]
- platform: [ubuntu-20.04]
+# platform: [macos-latest, ubuntu-latest, windows-latest]
+ platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
@@ -36,7 +36,9 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
- prefix-key: ${{ matrix.platform }}
+ prefix-key: 'ubuntu-latest'
+ workspaces: |
+ frontend/rust-lib
- name: install dependencies (windows only)
if: matrix.platform == 'windows-latest'