Skip to content

Commit

Permalink
chore: make network also configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
bonomat committed Apr 14, 2023
1 parent 0ec0a66 commit b429f9a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
electrs_endpoint: blockstream.info:110
coordinator_p2p_endpoint: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156@34.30.20.202:9045
network: mainnet
tag: ${{ github.event.release.target_commitish }}

build_android_apk:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deliverables-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ jobs:
with:
electrs_endpoint: 35.189.57.114:50000
coordinator_p2p_endpoint: 026e1de0e76902d71d2c27bfdda9d48c19c4c550f08bb4189d7208246e0e3af97e@35.189.57.114:9045
network: regtest
tag: main
39 changes: 28 additions & 11 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,30 @@ on:
coordinator_p2p_endpoint:
required: true
type: string
network:
required: true
type: string
description: "The target network for the release, e.g. mainnet/regtest"
tag:
required: true
description: "The branch, tag or SHA to checkout."
type: string
workflow_dispatch:
electrs_endpoint:
required: true
type: string
coordinator_p2p_endpoint:
required: true
type: string
tag:
required: true
description: "The branch, tag or SHA to checkout."
type: string
inputs:
electrs_endpoint:
required: true
type: string
coordinator_p2p_endpoint:
required: true
type: string
network:
required: true
type: string
description: "The target network for the release, e.g. mainnet/regtest"
tag:
required: true
description: "The branch, tag or SHA to checkout."
type: string

jobs:
build:
Expand Down Expand Up @@ -126,10 +135,18 @@ jobs:
BUILD_NAME=${{ steps.version.outputs.data }}
BUILD_NUMBER=$(git rev-list HEAD --count)
cd mobile
flutter build ipa --export-options-plist=ios/exportOptions.plist --dart-define="ELECTRS_ENDPOINT=$ELECTRS_ENDPOINT" --dart-define="COORDINATOR_P2P_ENDPOINT=$COORDINATOR_P2P_ENDPOINT" --dart-define="COMMIT=$(git rev-parse HEAD)" --dart-define="BRANCH=$(git rev-parse --abbrev-ref HEAD)" --build-name=$BUILD_NAME --build-number=$BUILD_NUMBER
flutter build ipa --export-options-plist=ios/exportOptions.plist \
--dart-define="ELECTRS_ENDPOINT=$ELECTRS_ENDPOINT" \
--dart-define="COORDINATOR_P2P_ENDPOINT=$COORDINATOR_P2P_ENDPOINT" \
--dart-define="NETWORK=$NETWORK" \
--dart-define="COMMIT=$(git rev-parse HEAD)" \
--dart-define="BRANCH=$(git rev-parse --abbrev-ref HEAD)" \
--build-name=$BUILD_NAME \
--build-number=$BUILD_NUMBER
env:
ELECTRS_ENDPOINT: ${{ inputs.electrs_endpoint }}
COORDINATOR_P2P_ENDPOINT: ${{ inputs.coordinator_p2p_endpoint }}
NETWORK: ${{ inputs.network }}

- name: Release to TestFlight
env:
Expand Down

0 comments on commit b429f9a

Please sign in to comment.