Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Update publishing CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Sep 20, 2022
1 parent db64f37 commit d603932
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi

- name: Build bdk-android library
run: ./gradlew :android:buildAndroidLib
run: |
cd bdk-android
./gradlew buildAndroidLib
- name: Publish to Maven Local and Maven Central
env:
Expand All @@ -53,4 +55,7 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew :android:publishToSonatype closeAndReleaseSonatypeStagingRepository
run: |
cd bdk-android
./gradlew publishToSonatype
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
17 changes: 12 additions & 5 deletions .github/workflows/publish-jvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ jobs:
run: rustup target add aarch64-apple-darwin

- name: Build bdk-jvm library
run: ./gradlew :jvm:buildJvmLib
run: |
cd bdk-jvm
./gradlew buildJvmLib
# build aarch64 + x86_64 native libraries and upload
- name: Upload macOS native libraries for reuse in publishing job
uses: actions/upload-artifact@v3
with:
# name: no name is required because we upload the entire directory
# the default name "artifact" will be used
path: /Users/runner/work/bdk-kotlin/bdk-kotlin/jvm/src/main/resources/
path: /Users/runner/work/bdk-kotlin/bdk-kotlin/bdk-jvm/lib/src/main/resources/

build-jvm-full-library:
name: Create full bdk-jvm library
Expand Down Expand Up @@ -75,15 +77,17 @@ jobs:
java-version: 11

- name: Build bdk-jvm library
run: ./gradlew :jvm:buildJvmLib
run: |
cd bdk-jvm
./gradlew buildJvmLib
- name: Download macOS native libraries from previous job
uses: actions/download-artifact@v3
id: download
with:
# download the artifact created in the prior job (named "artifact")
name: artifact
path: ./jvm/src/main/resources/
path: ./bdk-jvm/lib/src/main/resources/

- name: Publish to Maven Central
env:
Expand All @@ -92,4 +96,7 @@ jobs:
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew :jvm:publishToSonatype closeAndReleaseSonatypeStagingRepository
run: |
cd bdk-jvm
./gradlew publishToSonatype
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
2 changes: 1 addition & 1 deletion bdk-jvm/plugins/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Readme
The purpose of this directory is to host the Gradle plugin that add tasks for building the native binaries required by bdk-jvm, and building the language bindings files.
The purpose of this directory is to host the Gradle plugin that adds tasks for building the native binaries required by bdk-jvm, and building the language bindings files.

The plugin is applied to the `build.gradle.kts` file through the `plugins` block:
```kotlin
Expand Down

0 comments on commit d603932

Please sign in to comment.