Kotlin 1.4-M3, fixed CI glitches & fixed build on Mac (#4)
* Kotlin 1.4-M3, fixed CI glitches & fixed build on Mac * Fixes https://github.com/eskatos/gradle-command-action/issues/24 * Explicit mode requirements in Android tests Co-authored-by: Salomon BRYS <salomon@kodein.net>
This commit is contained in:
parent
316e585e4c
commit
c5dbc42496
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: iosX64Test
|
arguments: iosX64Test
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
@ -37,6 +37,7 @@ jobs:
|
|||||||
BINTRAY_USER: ${{ secrets.bintray_user }}
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
||||||
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
||||||
with:
|
with:
|
||||||
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository
|
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
@ -60,7 +61,7 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: check
|
arguments: check
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
@ -68,4 +69,5 @@ jobs:
|
|||||||
BINTRAY_USER: ${{ secrets.bintray_user }}
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
||||||
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
||||||
with:
|
with:
|
||||||
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: publishAllPublicationsToBintrayRepository
|
arguments: publishAllPublicationsToBintrayRepository
|
10
.github/workflows/snapshot.yml
vendored
10
.github/workflows/snapshot.yml
vendored
@ -8,8 +8,8 @@ on:
|
|||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.adoc'
|
- '**.adoc'
|
||||||
- '**/.gitignore'
|
- '**/.gitignore'
|
||||||
- './github/**'
|
- '.github/**'
|
||||||
- '!./github/workflow/snapshot.yml'
|
- '!.github/workflows/snapshot.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: iosX64Test
|
arguments: iosX64Test
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
@ -44,6 +44,7 @@ jobs:
|
|||||||
BINTRAY_USER: ${{ secrets.bintray_user }}
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
||||||
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
||||||
with:
|
with:
|
||||||
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
arguments: publishIosArm64PublicationToBintrayRepository publishIosX64PublicationToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
@ -67,7 +68,7 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: check
|
arguments: check
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
@ -75,4 +76,5 @@ jobs:
|
|||||||
BINTRAY_USER: ${{ secrets.bintray_user }}
|
BINTRAY_USER: ${{ secrets.bintray_user }}
|
||||||
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
BINTRAY_APIKEY: ${{ secrets.bintray_apikey }}
|
||||||
with:
|
with:
|
||||||
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
arguments: publishAllPublicationsToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
arguments: publishAllPublicationsToBintrayRepository -PsnapshotNumber=${{ github.run_number }} -PgitRef=${{ github.ref }} -PgitSha=${{ github.sha }}
|
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
@ -1,16 +1,22 @@
|
|||||||
name: Check
|
name: Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.adoc'
|
- '**.adoc'
|
||||||
- '**/.gitignore'
|
- '**/.gitignore'
|
||||||
- './github/**'
|
- '.github/**'
|
||||||
- '!./github/workflow/test.yml'
|
- '!.github/workflows/test.yml'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
paths-ignore:
|
||||||
|
- '**.md'
|
||||||
|
- '**.adoc'
|
||||||
|
- '**/.gitignore'
|
||||||
|
- '.github/**'
|
||||||
|
- '!.github/workflows/test.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
@ -35,12 +41,14 @@ jobs:
|
|||||||
- name: Check JNI
|
- name: Check JNI
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
dependencies-cache-enabled: true
|
dependencies-cache-enabled: false
|
||||||
arguments: jvmTest -PnoCrossCompile=true
|
arguments: jvmTest -PnoCrossCompile=true
|
||||||
- name: Check Linux
|
- name: Check Linux
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
|
dependencies-cache-enabled: false
|
||||||
arguments: linuxTest -PnoCrossCompile=true
|
arguments: linuxTest -PnoCrossCompile=true
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
@ -66,8 +74,8 @@ jobs:
|
|||||||
- name: Check iOS
|
- name: Check iOS
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
wrapper-cache-enabled: true
|
wrapper-cache-enabled: false # https://github.com/eskatos/gradle-command-action/issues/24
|
||||||
dependencies-cache-enabled: true
|
dependencies-cache-enabled: false
|
||||||
arguments: iosX64Test -PnoCrossCompile=true
|
arguments: iosX64Test -PnoCrossCompile=true
|
||||||
- name: Check Android
|
- name: Check Android
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
|
@ -4,7 +4,7 @@ Kotlin/Multiplatform wrapper for Bitcoin Core's secp256k1 library. Targets: JVM,
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
[  ](https://bintray.com/acinq/libs/secp256k1-kmp/0.1.0-1.4-M2/link)
|
[  ](https://bintray.com/acinq/libs/secp256k1-kmp/)
|
||||||
|
|
||||||
First, you need to add the ACINQ libraries repository:
|
First, you need to add the ACINQ libraries repository:
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform") version "1.4-M2-mt"
|
kotlin("multiplatform") version "1.4-M3"
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ buildscript {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "fr.acinq.secp256k1"
|
group = "fr.acinq.secp256k1"
|
||||||
version = "0.1.1-1.4-M2"
|
version = "0.1.0-1.4-M3"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -14,13 +14,12 @@ JNI_HEADERS=$TARGET
|
|||||||
|
|
||||||
if [ "$TARGET" == "linux" ]; then
|
if [ "$TARGET" == "linux" ]; then
|
||||||
OUTFILE=libsecp256k1-jni.so
|
OUTFILE=libsecp256k1-jni.so
|
||||||
|
[ "$CROSS" == "1" ] && sudo apt -y install libgmp-dev
|
||||||
ADD_LIB=-lgmp
|
ADD_LIB=-lgmp
|
||||||
CC_OPTS="-fPIC"
|
CC_OPTS="-fPIC"
|
||||||
elif [ "$TARGET" == "darwin" ]; then
|
elif [ "$TARGET" == "darwin" ]; then
|
||||||
OUTFILE=libsecp256k1-jni.dylib
|
OUTFILE=libsecp256k1-jni.dylib
|
||||||
if [ -z "$CROSS_TRIPLE" ]; then
|
|
||||||
ADD_LIB=-lgmp
|
ADD_LIB=-lgmp
|
||||||
fi
|
|
||||||
elif [ "$TARGET" == "mingw" ]; then
|
elif [ "$TARGET" == "mingw" ]; then
|
||||||
OUTFILE=secp256k1-jni.dll
|
OUTFILE=secp256k1-jni.dll
|
||||||
CC=/usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-gcc
|
CC=/usr/src/mxe/usr/bin/x86_64-w64-mingw32.static-gcc
|
||||||
|
@ -3,10 +3,8 @@ package = secp256k1
|
|||||||
headers = secp256k1.h secp256k1_ecdh.h secp256k1_recovery.h
|
headers = secp256k1.h secp256k1_ecdh.h secp256k1_recovery.h
|
||||||
headerFilter = secp256k1/** secp256k1_ecdh.h secp256k1_recovery.h secp256k1.h
|
headerFilter = secp256k1/** secp256k1_ecdh.h secp256k1_recovery.h secp256k1.h
|
||||||
|
|
||||||
staticLibraries.linux = libsecp256k1.a
|
|
||||||
libraryPaths.linux = c/secp256k1/build/linux/
|
libraryPaths.linux = c/secp256k1/build/linux/
|
||||||
linkerOpts.linux = -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lgmp
|
linkerOpts.linux = -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -lgmp
|
||||||
|
|
||||||
staticLibraries.ios = libsecp256k1.a
|
|
||||||
libraryPaths.ios = c/secp256k1/build/ios/ /usr/local/lib
|
libraryPaths.ios = c/secp256k1/build/ios/ /usr/local/lib
|
||||||
linkerOpts.ios = -framework Security -framework Foundation
|
linkerOpts.ios = -framework Security -framework Foundation
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package fr.acinq.secp256k1
|
package fr.acinq.secp256k1
|
||||||
|
|
||||||
|
|
||||||
class Placeholder
|
public class Placeholder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user