Skip to content

Commit

Permalink
Do some debug runs
Browse files Browse the repository at this point in the history
  • Loading branch information
cnixbtc committed Jul 14, 2024
1 parent 715b2ec commit 0d2944c
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/publish-all-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ jobs:
steps:
- run: echo "set setup output variables"

debug-print:
needs: setup
runs-on: ubuntu-latest
steps:
- run: echo ${{ needs.setup.outputs.spm-cocoapods }}
build-bindings-windows:
needs: setup
if: ${{ needs.setup.outputs.bindings-windows == 'true' }}
Expand All @@ -135,7 +140,7 @@ jobs:
use-dummy-binaries: ${{ needs.setup.outputs.use-dummy-binaries == 'true' }}
build-bindings-darwin:
needs: setup
if: always() && !failure() && !cancelled() && ${{ needs.setup.outputs.bindings-darwin == 'true' }}
if: ${{ needs.setup.outputs.bindings-darwin == 'true' }}
uses: ./.github/workflows/build-bindings-darwin.yml
with:
repository: ${{ needs.setup.outputs.repository }}
Expand All @@ -159,7 +164,7 @@ jobs:
use-dummy-binaries: ${{ needs.setup.outputs.use-dummy-binaries == 'true' }}
build-bindings-ios:
needs: setup
if: always() && !failure() && !cancelled() && ${{ needs.setup.outputs.bindings-ios == 'true' }}
if: ${{ needs.setup.outputs.bindings-ios == 'true' }}
uses: ./.github/workflows/build-bindings-ios.yml
with:
repository: ${{ needs.setup.outputs.repository }}
Expand Down Expand Up @@ -251,11 +256,9 @@ jobs:
- setup
- build-language-bindings
- publish-swift
# The flutter package depends on the swift package to be available at runtime.
# To make sure this is will be the case, we run the publishing job only if:
# a) its dependencies (mainly publish-swift) succeeded
# b) one of its dependencies, mainly publish-swift, was explicitly skipped (but didn't fail or get cancelled)
if: always() && !failure() && !cancelled() && ${{ needs.setup.outputs.flutter == 'true' }}
- publish-maven
# The flutter package depends on the swift and android packages to be available at runtime.
if: ${{ needs.setup.outputs.flutter == 'true' }}
uses: ./.github/workflows/publish-flutter.yml
with:
repository: ${{ needs.setup.outputs.repository }}
Expand All @@ -265,17 +268,13 @@ jobs:
secrets:
REPO_SSH_KEY: ${{ secrets.REPO_SSH_KEY }}

# react native version x.y.z will at runtime require
# ios and android packages x.y.z being published already.
publish-react-native:
needs:
- setup
- publish-swift
# The react native package depends on the swift cocoapod to be available at runtime.
# To make sure this is will be the case, we run the publishing job only if:
# a) its dependencies (mainly publish-swift) succeeded
# b) one of its dependencies, mainly publish-swift, was explicitly skipped (but didn't fail or get cancelled)
if: always() && !failure() && !cancelled() && ${{ needs.setup.outputs.react-native == 'true' }}
- publish-maven
# The react native package depends on the swift and android packages to be available at runtime.
if: ${{ needs.setup.outputs.react-native == 'true' }}
uses: ./.github/workflows/publish-react-native.yml
with:
repository: ${{ needs.setup.outputs.repository }}
Expand Down Expand Up @@ -308,7 +307,7 @@ jobs:
- build-bindings-darwin
- build-bindings-ios
- build-language-bindings
if: always() && !failure() && !cancelled() && ${{ needs.setup.outputs.spm-cocoapods == 'true' }}
if: ${{ needs.setup.outputs.spm-cocoapods == 'true' }}
uses: ./.github/workflows/publish-swift.yml
with:
repository: ${{ needs.setup.outputs.repository }}
Expand All @@ -319,3 +318,16 @@ jobs:
REPO_SSH_KEY: ${{ secrets.REPO_SSH_KEY }}
GITHUB_TOKEN_BREEZ_SDK_SWIFT: ${{ secrets.GITHUB_TOKEN_BREEZ_SDK_SWIFT }} # todo: create token
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} # todo: create token

debug-publish:
needs:
- setup
- publish-swift
- publish-maven
if: ${{ true }}
runs-on: ubuntu-latest
steps:
- name: check needs results
run: |
echo 'needs.publish-swift.result'
echo 'needs.publish-maven.result'

0 comments on commit 0d2944c

Please sign in to comment.