Skip to content

Commit

Permalink
Upload bindings files once (#837)
Browse files Browse the repository at this point in the history
(cherry picked from commit 203c726)
  • Loading branch information
andrei-21 authored and danielgranhao committed Jan 10, 2024
1 parent bb1a770 commit 5c6bd8d
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,16 @@ jobs:
command: build
args: --release --target ${{ matrix.target }}
- name: Upload library binaries
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
path: target/${{ matrix.target }}/release/libuniffi_lipalightninglib.a
name: build-${{ matrix.target }}
- name: Upload header file
uses: actions/upload-artifact@master
- name: Upload bindings files
uses: actions/upload-artifact@v4
if: ${{ matrix.target == 'x86_64-apple-ios' }}
with:
path: bindings/swift/lipalightninglibFFI.h
name: header-file
- name: Upload bindings file
uses: actions/upload-artifact@master
with:
path: bindings/swift/lipalightninglib.swift
name: bindings-file-ios
path: bindings/swift/lipalightninglib*
name: bindings-files-ios

cross-compile-android:
name: cross-compile-android
Expand Down Expand Up @@ -96,12 +92,13 @@ jobs:
command: build
args: --release --target ${{ matrix.target }}
- name: Upload library binaries
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
path: target/${{ matrix.target }}/release/libuniffi_lipalightninglib.so
name: build-${{ matrix.target }}
- name: Upload bindings file
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
if: ${{ matrix.target == 'aarch64-linux-android' }}
with:
path: bindings/kotlin/uniffi/lipalightninglib/lipalightninglib.kt
name: bindings-file-android
Expand All @@ -112,17 +109,17 @@ jobs:
runs-on: macos-latest
steps:
- name: Download x86 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/x86_64-apple-ios/release
name: build-x86_64-apple-ios
- name: Download aarch64 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/aarch64-apple-ios/release
name: build-aarch64-apple-ios
- name: Download aarch64sim bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/aarch64-apple-ios-sim/release
name: build-aarch64-apple-ios-sim
Expand All @@ -133,7 +130,7 @@ jobs:
target/aarch64-apple-ios-sim/release/libuniffi_lipalightninglib.a \
target/x86_64-apple-ios/release/libuniffi_lipalightninglib.a
- name: Upload universal binary
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
path: target/universal/release/libuniffi_lipalightninglib_simulator.a
name: build-ios-simulator-universal
Expand Down Expand Up @@ -165,25 +162,20 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true
- name: Download aarch64 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/aarch64-apple-ios/release
name: build-aarch64-apple-ios
- name: Download simulator universal bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/universal/release
name: build-ios-simulator-universal
- name: Download header file
uses: actions/download-artifact@master
with:
path: bindings/swift/
name: header-file
- name: Download bindings file
uses: actions/download-artifact@master
- name: Download bindings files
uses: actions/download-artifact@v4
with:
path: bindings/swift/
name: bindings-file-ios
name: bindings-files-ios
- name: Create xcframework
run: |
git clone [email protected]:getlipa/lipa-lightning-lib-swift.git
Expand All @@ -194,7 +186,7 @@ jobs:
cd lipa-lightning-lib-swift
zip -9 -r lipalightninglibFFI.xcframework.zip lipalightninglibFFI.xcframework
- name: Upload xcframework zip
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v4
with:
path: lipa-lightning-lib-swift/lipalightninglibFFI.xcframework.zip
name: lipalightninglibFFI.xcframework
Expand Down Expand Up @@ -268,22 +260,22 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true
- name: Download aarch64 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/aarch64-linux-android/release
name: build-aarch64-linux-android
- name: Download armv7 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/armv7-linux-androideabi/release
name: build-armv7-linux-androideabi
- name: Download i686 bin
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: target/i686-linux-android/release
name: build-i686-linux-android
- name: Download bindings file
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
path: bindings/kotlin/uniffi/lipalightninglib
name: bindings-file-android
Expand Down

0 comments on commit 5c6bd8d

Please sign in to comment.