-
Notifications
You must be signed in to change notification settings - Fork 23
106 lines (90 loc) · 3.79 KB
/
testflight-for-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Daily Task
on:
schedule:
- cron: '0 0 * * *' # This will run the task every day at midnight UTC
jobs:
run_task:
name: Run Task
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: List installations Xcode version
run: sudo ls -1 /Applications | grep "Xcode"
- name: List used Xcode version
run: /usr/bin/xcodebuild -version
- name: Select different xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
- name: List used Xcode version
run: /usr/bin/xcodebuild -version
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
cache: true
cache-key: flutter-${{ env.FLUTTER_VERSION }}
cache-path: ${{ runner.tool_cache }}/flutter
- name: Check cocoapods version
run: /usr/local/bin/pod --version
- name: Re-install cocoapods
run: sudo gem install cocoapods
- name: Check cocoapods version
run: /usr/local/bin/pod --version
- name: Install just
run: cargo install just --force
- name: Install fastlane
run: |
cd mobile/ios/fastlane
gem install bundler
bundle install
bundle info fastlane
- name: Install FFI bindings
run: just deps-gen --force
- name: Install ios dependencies
run: cargo install cargo-lipo --force
- name: Set rustup targets
run: rustup target add aarch64-apple-ios x86_64-apple-ios
- name: Generate FFI bindings
run: just gen
- name: Build iOS Rust lib in release mode
run: just ios-release
- name: Parse version from pubspec.yaml
id: version
uses: jbutcher5/[email protected]
with:
file: "mobile/pubspec.yaml"
key-path: '["version"]'
- name: Build iOS Archive
id: build-ios
run: |
NETWORK=$NETWORK just build-ipa-no-codesign
env:
ELECTRS_ENDPOINT: http://146.0.73.175:3003
COORDINATOR_P2P_ENDPOINT: 021eddb3062fddef2c24f16f6de55fbd78ab985b74b41858719def46321d4be7d0@146.0.73.175:9045
NETWORK: signet
COORDINATOR_PORT_HTTP: 80
ORACLE_ENDPOINT: http://146.0.73.175:8081
ORACLE_PUBKEY: 5d12d79f575b8d99523797c46441c0549eb0defb6195fe8a080000cbe3ab3859
MEME_ENDPOINT: http://api.10101.finance/memes/
- name: Put for beta testing app for review
env:
# secrets
FASTLANE_APPLE_ID: ${{ secrets.FASTLANE_APPLE_ID }}
FASTLANE_APP_STORE_CONNECT_TEAM_ID: ${{ secrets.FASTLANE_APP_STORE_CONNECT_TEAM_ID }}
FASTLANE_DEVELOPER_PORTAL_TEAM_ID: ${{ secrets.FASTLANE_DEVELOPER_PORTAL_TEAM_ID }}
FASTLANE_TEMP_KEYCHAIN_USER: ${{ secrets.FASTLANE_TEMP_KEYCHAIN_USER }}
FASTLANE_TEMP_KEYCHAIN_PASSWORD: ${{ secrets.FASTLANE_TEMP_KEYCHAIN_PASSWORD }}
FASTLANE_APPLE_ISSUER_ID: ${{ secrets.FASTLANE_APPLE_ISSUER_ID }}
FASTLANE_APPLE_KEY_ID: ${{ secrets.FASTLANE_APPLE_KEY_ID }}
FASTLANE_APPLE_KEY_CONTENT: ${{ secrets.FASTLANE_APPLE_KEY_CONTENT }}
FASTLANE_GIT_AUTHORIZATION: ${{ secrets.FASTLANE_GIT_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.FASTLANE_MATCH_PASSWORD }}
# regtest specific settings
FASTLANE_DEVELOPER_APP_ID: ${{ secrets.FASTLANE_DEVELOPER_REGTEST_APP_ID }}
FASTLANE_DEVELOPER_APP_IDENTIFIER: finance.get10101.app.test
FASTLANE_PROVISIONING_PROFILE_SPECIFIER: match AppStore finance.get10101.app.test
FASTLANE_APP_SCHEME: test
run: |
just publish-ios-to-group
- name: Print fastlane gym logs
if: always()
run: cat /Users/runner/Library/Logs/gym/10101*.log