Compare commits
3 Commits
frost
...
snapshot/m
Author | SHA1 | Date | |
---|---|---|---|
|
71c5574e8d | ||
|
d0c7d79d9b | ||
|
6892b43203 |
6
.github/workflows/snapshot.yml
vendored
6
.github/workflows/snapshot.yml
vendored
@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Check JVM (Windows)
|
- name: Check JVM (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: ./gradlew jvmTest
|
run: ./gradlew mingwX64Test jvmTest
|
||||||
- name: Check Linux
|
- name: Check Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -95,7 +95,7 @@ jobs:
|
|||||||
- name: Check iOS
|
- name: Check iOS
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./gradlew iosX64Test
|
run: ./gradlew macosX64Test iosX64Test
|
||||||
- name: Check Android
|
- name: Check Android
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
- name: Publish Windows
|
- name: Publish Windows
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: ./gradlew :jni:jvm:mingw:publishToMavenLocal -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }}
|
run: ./gradlew publishMingwX64PublicationToMavenLocal :jni:jvm:mingw:publishToMavenLocal -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }}
|
||||||
- name: Publish MacOS
|
- name: Publish MacOS
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -93,7 +93,7 @@ jobs:
|
|||||||
- name: Check JVM (Windows)
|
- name: Check JVM (Windows)
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: ./gradlew jvmTest
|
run: ./gradlew jvmTest mingwX64Test
|
||||||
- name: Check Linux
|
- name: Check Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -101,7 +101,7 @@ jobs:
|
|||||||
- name: Check iOS
|
- name: Check iOS
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./gradlew iosX64Test
|
run: ./gradlew iosX64Test macosX64Test
|
||||||
- name: Check Android
|
- name: Check Android
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
|
@ -58,6 +58,18 @@ kotlin {
|
|||||||
secp256k1CInterop("host")
|
secp256k1CInterop("host")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
macosX64 {
|
||||||
|
secp256k1CInterop("host")
|
||||||
|
}
|
||||||
|
|
||||||
|
macosArm64 {
|
||||||
|
secp256k1CInterop("host")
|
||||||
|
}
|
||||||
|
|
||||||
|
mingwX64 {
|
||||||
|
secp256k1CInterop("host")
|
||||||
|
}
|
||||||
|
|
||||||
iosX64 {
|
iosX64 {
|
||||||
secp256k1CInterop("ios")
|
secp256k1CInterop("ios")
|
||||||
}
|
}
|
||||||
|
@ -21,45 +21,55 @@ mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/conte
|
|||||||
-Djavadoc=$ARTIFACT_ID_BASE-$VERSION-javadoc.jar
|
-Djavadoc=$ARTIFACT_ID_BASE-$VERSION-javadoc.jar
|
||||||
popd
|
popd
|
||||||
pushd .
|
pushd .
|
||||||
for i in iosarm64 iossimulatorarm64 iosx64 jni-android jni-common jni-jvm-darwin jni-jvm-extract jni-jvm-linux jni-jvm-mingw jni-jvm jvm linuxx64; do
|
for i in iosarm64 iossimulatorarm64 iosx64 jni-android jni-common jni-jvm-darwin jni-jvm-extract jni-jvm-linux jni-jvm-mingw jni-jvm jvm linuxx64 macosarm64 macosx64 mingwx64; do
|
||||||
cd fr/acinq/secp256k1/secp256k1-kmp-$i/$VERSION
|
cd fr/acinq/secp256k1/secp256k1-kmp-$i/$VERSION
|
||||||
if [ $i == iosarm64 ] || [ $i == iossimulatorarm64 ] || [ $i == iosx64 ]; then
|
|
||||||
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
case $i in
|
||||||
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
iosarm64 | iossimulatorarm64 | iosx64 | macosarm64 | macosx64)
|
||||||
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.klib \
|
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
||||||
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION-metadata.jar,$ARTIFACT_ID_BASE-$i-$VERSION.module,$ARTIFACT_ID_BASE-$i-$VERSION-cinterop-libsecp256k1.klib \
|
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
||||||
-Dtypes=jar,module,klib \
|
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.klib \
|
||||||
-Dclassifiers=metadata,,cinterop-libsecp256k1 \
|
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION-metadata.jar,$ARTIFACT_ID_BASE-$i-$VERSION.module,$ARTIFACT_ID_BASE-$i-$VERSION-cinterop-libsecp256k1.klib \
|
||||||
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
-Dtypes=jar,module,klib \
|
||||||
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
-Dclassifiers=metadata,,cinterop-libsecp256k1 \
|
||||||
elif [ $i == linuxx64 ]; then
|
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
||||||
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
||||||
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
;;
|
||||||
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.klib \
|
|
||||||
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module,$ARTIFACT_ID_BASE-$i-$VERSION-cinterop-libsecp256k1.klib \
|
linuxx64 | mingwx64)
|
||||||
-Dtypes=module,klib \
|
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
||||||
-Dclassifiers=,cinterop-libsecp256k1 \
|
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
||||||
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.klib \
|
||||||
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module,$ARTIFACT_ID_BASE-$i-$VERSION-cinterop-libsecp256k1.klib \
|
||||||
elif [ $i == jni-android ]; then
|
-Dtypes=module,klib \
|
||||||
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
-Dclassifiers=,cinterop-libsecp256k1 \
|
||||||
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
||||||
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.aar \
|
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
||||||
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module \
|
;;
|
||||||
-Dtypes=module \
|
|
||||||
-Dclassifiers= \
|
jni-android)
|
||||||
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
||||||
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
||||||
else
|
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.aar \
|
||||||
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module \
|
||||||
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
-Dtypes=module \
|
||||||
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.jar \
|
-Dclassifiers= \
|
||||||
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module \
|
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
||||||
-Dtypes=module \
|
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
||||||
-Dclassifiers= \
|
;;
|
||||||
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
|
||||||
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
*)
|
||||||
fi
|
mvn deploy:deploy-file -DrepositoryId=ossrh -Durl=https://oss.sonatype.org/content/repositories/snapshots/ \
|
||||||
|
-DpomFile=$ARTIFACT_ID_BASE-$i-$VERSION.pom \
|
||||||
|
-Dfile=$ARTIFACT_ID_BASE-$i-$VERSION.jar \
|
||||||
|
-Dfiles=$ARTIFACT_ID_BASE-$i-$VERSION.module \
|
||||||
|
-Dtypes=module \
|
||||||
|
-Dclassifiers= \
|
||||||
|
-Dsources=$ARTIFACT_ID_BASE-$i-$VERSION-sources.jar \
|
||||||
|
-Djavadoc=$ARTIFACT_ID_BASE-$i-$VERSION-javadoc.jar
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
popd
|
popd
|
||||||
pushd .
|
pushd .
|
||||||
done
|
done
|
||||||
|
@ -7,6 +7,12 @@ staticLibraries.linux = libsecp256k1.a
|
|||||||
libraryPaths.linux = c/secp256k1/build/linux/ native/build/linux/ native/build/darwin/
|
libraryPaths.linux = c/secp256k1/build/linux/ native/build/linux/ native/build/darwin/
|
||||||
linkerOpts.linux = -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib
|
linkerOpts.linux = -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib
|
||||||
|
|
||||||
|
staticLibraries.mingw = libsecp256k1.a
|
||||||
|
libraryPaths.mingw = c/secp256k1/build/mingw/ native/build/mingw/
|
||||||
|
|
||||||
|
staticLibraries.macos = libsecp256k1.a
|
||||||
|
libraryPaths.macos = c/secp256k1/build/macos/ native/build/macos/
|
||||||
|
|
||||||
staticLibraries.ios = libsecp256k1.a
|
staticLibraries.ios = libsecp256k1.a
|
||||||
libraryPaths.ios_x64 = c/secp256k1/build/ios/ /usr/local/lib native/build/ios/
|
libraryPaths.ios_x64 = c/secp256k1/build/ios/ /usr/local/lib native/build/ios/
|
||||||
libraryPaths.ios_arm64 = c/secp256k1/build/ios/ /usr/local/lib native/build/ios/
|
libraryPaths.ios_arm64 = c/secp256k1/build/ios/ /usr/local/lib native/build/ios/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user