fix gdk kotlin example (#11825)
This commit is contained in:
@@ -135,6 +135,17 @@ jobs:
|
||||
env:
|
||||
RUST_MIN_STACK: 8388608
|
||||
|
||||
kotlin-gdk-smoke-test:
|
||||
name: Test Kotlin GDK package
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/maven-sdk.yml
|
||||
with:
|
||||
publish: false
|
||||
smoke-test: true
|
||||
|
||||
rust-build-and-test-tls:
|
||||
name: Build and Test TLS Backend (${{ matrix.tls-feature }})
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -80,6 +80,7 @@ jobs:
|
||||
uses: ./.github/workflows/maven-sdk.yml
|
||||
with:
|
||||
publish: true
|
||||
smoke-test: false
|
||||
secrets: inherit
|
||||
|
||||
python-wheels:
|
||||
|
||||
@@ -8,6 +8,11 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
smoke-test:
|
||||
description: "Run the Kotlin GDK smoke test"
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
publish:
|
||||
@@ -15,6 +20,11 @@ on:
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
smoke-test:
|
||||
description: "Run the Kotlin GDK smoke test"
|
||||
required: true
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -146,6 +156,7 @@ jobs:
|
||||
smoke-test-linux-aarch64:
|
||||
name: Smoke test Kotlin GDK (linux-aarch64)
|
||||
needs: package
|
||||
if: inputs.smoke-test
|
||||
runs-on: ubuntu-22.04-arm
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -192,7 +203,7 @@ jobs:
|
||||
name: Publish to Maven Central
|
||||
needs: [package, smoke-test-linux-aarch64]
|
||||
runs-on: ubuntu-latest
|
||||
if: inputs.publish
|
||||
if: inputs.publish && !cancelled() && needs.package.result == 'success' && (!inputs.smoke-test || needs.smoke-test-linux-aarch64.result == 'success')
|
||||
environment: maven-central
|
||||
concurrency:
|
||||
group: gdk-maven-release-${{ needs.package.outputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user