Skip to content

Commit

Permalink
fix: cargo make error
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Oct 8, 2024
1 parent 7b55833 commit deb7ae9
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/actions/flutter_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,27 @@ runs:
flutter-version: ${{ inputs.flutter_version }}
cache: true

- name: Install Rust toolchain
id: rust_toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ inputs.rust_toolchain }}
target: ${{ inputs.rust_target }}
override: true
profile: minimal

- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ inputs.os }}
workspaces: |
frontend/rust-lib
cache-all-crates: true

- uses: taiki-e/install-action@v2
if: steps.cache-appflowy-core.outputs.cache-hit != 'true'
with:
tool: cargo-make@${{ inputs.cargo_make_version }}, duckscript_cli

- name: Install prerequisites
working-directory: frontend
shell: bash
Expand Down Expand Up @@ -79,16 +100,6 @@ runs:
path: frontend/appflowy_backend
key: ${{ runner.os }}-appflowy-core-${{ steps.hash_rust_files.outputs.combined_hash }}

- name: Install Rust toolchain
if: steps.cache-appflowy-core.outputs.cache-hit != 'true'
id: rust_toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ inputs.rust_toolchain }}
target: ${{ inputs.rust_target }}
override: true
profile: minimal

- uses: Swatinem/rust-cache@v2
if: steps.cache-appflowy-core.outputs.cache-hit != 'true'
with:
Expand All @@ -97,11 +108,6 @@ runs:
frontend/rust-lib
cache-all-crates: true

- uses: taiki-e/install-action@v2
if: steps.cache-appflowy-core.outputs.cache-hit != 'true'
with:
tool: cargo-make@${{ inputs.cargo_make_version }}, duckscript_cli

- name: Build AppFlowy Core
if: steps.cache-appflowy-core.outputs.cache-hit != 'true'
working-directory: frontend
Expand Down

0 comments on commit deb7ae9

Please sign in to comment.