Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 18a955c

Browse files
committed
chore: Use cache for cargo install flutter rust bridge
1 parent d2a835b commit 18a955c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/create_release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ jobs:
3939
flutter-version: ${{ env.FLUTTER_VERSION }}
4040
architecture: x64
4141

42-
- name: Install FFI bindings
43-
run: cargo install flutter_rust_bridge_codegen
44-
45-
- name: Generate FFI bindings
46-
run: make gen
47-
4842
- uses: actions/cache@v3
4943
id: cache-deps
5044
with:
@@ -56,6 +50,13 @@ jobs:
5650
./rust/target
5751
key: ${{ runner.os }}-cargo-integrate-android-${{ hashFiles('**/Cargo.lock') }}-${{ steps.checkout.outputs.rustc_hash }}
5852

53+
- name: Install FFI bindings
54+
if: steps.cache-deps.outputs.cache-hit != 'true'
55+
run: cargo install flutter_rust_bridge_codegen
56+
57+
- name: Generate FFI bindings
58+
run: make gen
59+
5960
- name: Add Rust targets
6061
run: rustup target add armv7-linux-androideabi aarch64-linux-android
6162

0 commit comments

Comments
 (0)