Skip to content

Commit

Permalink
Merge pull request #411 from breez/20230828-add-golang-android-bindings
Browse files Browse the repository at this point in the history
ci: Add android bindings to publish-golang
  • Loading branch information
dangeross authored Aug 31, 2023
2 parents b09301f + 9fe434e commit 2936484
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-all-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
windows: ${{ !!inputs.csharp-package-version || !!inputs.golang-package-version }}
darwin: ${{ !!inputs.csharp-package-version || !!inputs.golang-package-version }}
linux: ${{ !!inputs.csharp-package-version || !!inputs.golang-package-version }}
android: ${{ !!inputs.kotlin-mpp-package-version || !!inputs.maven-package-version }}
android: ${{ !!inputs.kotlin-mpp-package-version || !!inputs.maven-package-version || !!inputs.golang-package-version }}
ios: ${{ !!inputs.kotlin-mpp-package-version || !!inputs.maven-package-version }}
kotlin: ${{ !!inputs.kotlin-mpp-package-version || !!inputs.maven-package-version }}
swift: false
Expand Down Expand Up @@ -131,6 +131,7 @@ jobs:
publish-golang:
needs:
- setup
- build-android
- build-windows
- build-darwin
- build-linux
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/publish-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@ jobs:
name: bindings-golang
path: breez_sdk

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-i686-linux-android
path: breez_sdk/lib/android-386

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-armv7-linux-androideabi
path: breez_sdk/lib/android-aarch

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-aarch64-linux-android
path: breez_sdk/lib/android-aarch64

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-x86_64-linux-android
path: breez_sdk/lib/android-amd64

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-aarch64-apple-darwin
Expand Down Expand Up @@ -67,6 +87,14 @@ jobs:
git config --global user.email [email protected]
git config --global user.name github-actions
git add breez_sdk/breez_sdk.go
git add breez_sdk/lib/android-386/libbreez_sdk_bindings.so
git add breez_sdk/lib/android-386/libc++_shared.so
git add breez_sdk/lib/android-aarch/libbreez_sdk_bindings.so
git add breez_sdk/lib/android-aarch/libc++_shared.so
git add breez_sdk/lib/android-aarch64/libbreez_sdk_bindings.so
git add breez_sdk/lib/android-aarch64/libc++_shared.so
git add breez_sdk/lib/android-amd64/libbreez_sdk_bindings.so
git add breez_sdk/lib/android-amd64/libc++_shared.so
git add breez_sdk/lib/darwin-aarch64/libbreez_sdk_bindings.dylib
git add breez_sdk/lib/darwin-amd64/libbreez_sdk_bindings.dylib
git add breez_sdk/lib/linux-aarch64/libbreez_sdk_bindings.so
Expand Down

0 comments on commit 2936484

Please sign in to comment.