Przeglądaj źródła

ci: cache target (#2711)

Nathan.fooo 1 rok temu
rodzic
commit
5b59800449

+ 2 - 0
.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:

+ 3 - 1
.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

+ 5 - 3
.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'