From 10fef27dd7051547e766a90750a65d8f4a9a02c6 Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Fri, 21 Jul 2023 13:26:57 -0700 Subject: [PATCH 1/3] Add CI publish and build jobs for the crypto lib --- .github/workflows/core-publish.yaml | 2 +- .github/workflows/crypto-build.yaml | 31 +++++++++++++++++++ .github/workflows/crypto-publish.yaml | 30 ++++++++++++++++++ .github/workflows/lightspark-sdk-publish.yaml | 2 +- 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/crypto-build.yaml create mode 100644 .github/workflows/crypto-publish.yaml diff --git a/.github/workflows/core-publish.yaml b/.github/workflows/core-publish.yaml index ea7e0fb5..19b18ac3 100644 --- a/.github/workflows/core-publish.yaml +++ b/.github/workflows/core-publish.yaml @@ -5,7 +5,7 @@ on: types: [ published ] jobs: - publish-wallet-sdk: + publish-core-sdk: if: ${{ startsWith(github.event.release.tag_name, 'core-') }} runs-on: macos-11 diff --git a/.github/workflows/crypto-build.yaml b/.github/workflows/crypto-build.yaml new file mode 100644 index 00000000..6d3047a1 --- /dev/null +++ b/.github/workflows/crypto-build.yaml @@ -0,0 +1,31 @@ +name: Crypto SDK Build + +on: + push: + paths: + - 'crypto/**' + - 'build.gradle.kts' + - '.github/workflows/crypto-sdk-build.yaml' + branches: + - 'main' + - 'develop' + +jobs: + build: + # No point in running this build on a core cut because it will fail until the deploy is done. + if: github.event.base_ref == null || !startsWith(github.event.base_ref, 'release/core-') + runs-on: macos-11 + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 + - name: Build and lint + uses: gradle/gradle-build-action@v2.4.2 + with: + arguments: crypto:assemble diff --git a/.github/workflows/crypto-publish.yaml b/.github/workflows/crypto-publish.yaml new file mode 100644 index 00000000..3b161ee1 --- /dev/null +++ b/.github/workflows/crypto-publish.yaml @@ -0,0 +1,30 @@ +name: Crypto SDK Publish + +on: + release: + types: [ published ] + +jobs: + publish-crypto-sdk: + if: ${{ startsWith(github.event.release.tag_name, 'crypto-') }} + runs-on: macos-11 + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 + - name: Publish package + uses: gradle/gradle-build-action@v2.4.2 + with: + arguments: crypto:publish + env: + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_IN_MEMORY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} diff --git a/.github/workflows/lightspark-sdk-publish.yaml b/.github/workflows/lightspark-sdk-publish.yaml index bef2f485..31bbaaff 100644 --- a/.github/workflows/lightspark-sdk-publish.yaml +++ b/.github/workflows/lightspark-sdk-publish.yaml @@ -5,7 +5,7 @@ on: types: [ published ] jobs: - publish-wallet-sdk: + publish-lightspark-sdk: if: ${{ startsWith(github.event.release.tag_name, 'lightspark-sdk-') }} runs-on: macos-11 From 213a732020136ba4d2ca0118f4da670b3a209a9b Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Fri, 21 Jul 2023 13:29:55 -0700 Subject: [PATCH 2/3] Minor CI fix for the crypto lib --- .github/workflows/crypto-build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/crypto-build.yaml b/.github/workflows/crypto-build.yaml index 6d3047a1..750c7014 100644 --- a/.github/workflows/crypto-build.yaml +++ b/.github/workflows/crypto-build.yaml @@ -5,7 +5,7 @@ on: paths: - 'crypto/**' - 'build.gradle.kts' - - '.github/workflows/crypto-sdk-build.yaml' + - '.github/workflows/crypto-build.yaml' branches: - 'main' - 'develop' From 92e02d4b69a9ef8ccdfb8c41e8ad729387c21572 Mon Sep 17 00:00:00 2001 From: runner Date: Fri, 21 Jul 2023 20:39:54 +0000 Subject: [PATCH 3/3] Bump crypto to version 0.1.2 --- crypto/gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/gradle.properties b/crypto/gradle.properties index 35c0b64e..4e7d1ad0 100644 --- a/crypto/gradle.properties +++ b/crypto/gradle.properties @@ -1,7 +1,7 @@ GROUP=com.lightspark POM_ARTIFACT_ID=lightspark-crypto # Don't bump this manually. Run `scripts/versions.main.kt ` to bump the version instead. -VERSION_NAME=0.1.1 +VERSION_NAME=0.1.2 POM_DESCRIPTION=The Lightspark shared crypto library. POM_INCEPTION_YEAR=2023