ci: cache target (#2711)

This commit is contained in:
Nathan.fooo 2023-06-05 18:28:36 +08:00 committed by GitHub
parent 6a43dd871d
commit 5b59800449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -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:

View File

@ -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

View File

@ -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'