Update publishing CI workflow
This commit is contained in:
parent
db64f372f2
commit
d603932e23
9
.github/workflows/publish-android.yaml
vendored
9
.github/workflows/publish-android.yaml
vendored
@ -44,7 +44,9 @@ jobs:
|
|||||||
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
|
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi
|
||||||
|
|
||||||
- name: Build bdk-android library
|
- name: Build bdk-android library
|
||||||
run: ./gradlew :android:buildAndroidLib
|
run: |
|
||||||
|
cd bdk-android
|
||||||
|
./gradlew buildAndroidLib
|
||||||
|
|
||||||
- name: Publish to Maven Local and Maven Central
|
- name: Publish to Maven Local and Maven Central
|
||||||
env:
|
env:
|
||||||
@ -53,4 +55,7 @@ jobs:
|
|||||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
|
||||||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
|
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
|
||||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
run: ./gradlew :android:publishToSonatype closeAndReleaseSonatypeStagingRepository
|
run: |
|
||||||
|
cd bdk-android
|
||||||
|
./gradlew publishToSonatype
|
||||||
|
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
||||||
|
17
.github/workflows/publish-jvm.yaml
vendored
17
.github/workflows/publish-jvm.yaml
vendored
@ -36,7 +36,9 @@ jobs:
|
|||||||
run: rustup target add aarch64-apple-darwin
|
run: rustup target add aarch64-apple-darwin
|
||||||
|
|
||||||
- name: Build bdk-jvm library
|
- name: Build bdk-jvm library
|
||||||
run: ./gradlew :jvm:buildJvmLib
|
run: |
|
||||||
|
cd bdk-jvm
|
||||||
|
./gradlew buildJvmLib
|
||||||
|
|
||||||
# build aarch64 + x86_64 native libraries and upload
|
# build aarch64 + x86_64 native libraries and upload
|
||||||
- name: Upload macOS native libraries for reuse in publishing job
|
- name: Upload macOS native libraries for reuse in publishing job
|
||||||
@ -44,7 +46,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# name: no name is required because we upload the entire directory
|
# name: no name is required because we upload the entire directory
|
||||||
# the default name "artifact" will be used
|
# 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:
|
build-jvm-full-library:
|
||||||
name: Create full bdk-jvm library
|
name: Create full bdk-jvm library
|
||||||
@ -75,7 +77,9 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
||||||
- name: Build bdk-jvm library
|
- name: Build bdk-jvm library
|
||||||
run: ./gradlew :jvm:buildJvmLib
|
run: |
|
||||||
|
cd bdk-jvm
|
||||||
|
./gradlew buildJvmLib
|
||||||
|
|
||||||
- name: Download macOS native libraries from previous job
|
- name: Download macOS native libraries from previous job
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@ -83,7 +87,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# download the artifact created in the prior job (named "artifact")
|
# download the artifact created in the prior job (named "artifact")
|
||||||
name: artifact
|
name: artifact
|
||||||
path: ./jvm/src/main/resources/
|
path: ./bdk-jvm/lib/src/main/resources/
|
||||||
|
|
||||||
- name: Publish to Maven Central
|
- name: Publish to Maven Central
|
||||||
env:
|
env:
|
||||||
@ -92,4 +96,7 @@ jobs:
|
|||||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_PASSPHRASE }}
|
||||||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
|
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.NEXUS_USERNAME }}
|
||||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
run: ./gradlew :jvm:publishToSonatype closeAndReleaseSonatypeStagingRepository
|
run: |
|
||||||
|
cd bdk-jvm
|
||||||
|
./gradlew publishToSonatype
|
||||||
|
# ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Readme
|
# 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:
|
The plugin is applied to the `build.gradle.kts` file through the `plugins` block:
|
||||||
```kotlin
|
```kotlin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user