Skip to content

Commit

Permalink
Link C Headers before generating FFI bindings
Browse files Browse the repository at this point in the history
Wait for libraries to be built first.
  • Loading branch information
erdemyerebasmaz committed Sep 29, 2024
1 parent be7476d commit 6bddb3a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,6 @@ jobs:
continue-on-error: true
run: just codegen

- name: Generate FFI bindings
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just ffigen

- name: 🔒 Install SSH Key
env:
SSH_PRIVATE_KEY: ${{ secrets.REPO_SSH_KEY }}
Expand All @@ -254,6 +248,18 @@ jobs:
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
run: just build-uniffi-android

- name: Link C Headers
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just link-headers

- name: Generate FFI bindings
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just ffigen

- name: 🗂️ Populate Flutter tool's cache of binary artifacts.
working-directory: lbreez
run: flutter precache
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,6 @@ jobs:
continue-on-error: true
run: just codegen

- name: Generate FFI bindings
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just ffigen

- name: 🔒 Install SSH Key
env:
SSH_PRIVATE_KEY: ${{secrets.REPO_SSH_KEY}}
Expand All @@ -259,6 +253,18 @@ jobs:
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
run: just build-uniffi-swift

- name: Link C Headers
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just link-headers

- name: Generate FFI bindings
if: ${{ needs.setup.outputs.use-published-plugins == 'false' }}
working-directory: breez-sdk-liquid/lib/bindings/langs/flutter/
continue-on-error: true
run: just ffigen

- name: 🗂️ Populate Flutter tool's cache of binary artifacts.
working-directory: lbreez
run: flutter precache
Expand Down

0 comments on commit 6bddb3a

Please sign in to comment.