|
15 | 15 | - "flake.*" |
16 | 16 |
|
17 | 17 | jobs: |
18 | | - build-ios: |
19 | | - runs-on: [self-hosted, macOS] |
20 | | - defaults: |
21 | | - run: |
22 | | - working-directory: ./client |
23 | | - steps: |
24 | | - - name: Checkout main repo |
25 | | - uses: actions/checkout@v6 |
26 | | - with: |
27 | | - submodules: "recursive" |
28 | | - |
29 | | - - name: Setup flutter |
30 | | - uses: subosito/flutter-action@v2 |
31 | | - with: |
32 | | - channel: stable |
33 | | - flutter-version: 3.38.9 |
34 | | - |
35 | | - - name: Use homebrew ruby |
36 | | - run: | |
37 | | - echo "/opt/homebrew/opt/ruby/bin" >> $GITHUB_PATH |
38 | | - echo "/opt/homebrew/bin" >> $GITHUB_PATH |
39 | | -
|
40 | | - - name: Install deps |
41 | | - run: flutter pub get |
42 | | - |
43 | | - - name: Unlock Keychain |
44 | | - run: security -v unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" /Users/admin/Library/Keychains/login.keychain |
45 | | - |
46 | | - - name: Create BoringTun directory |
47 | | - run: mkdir -p ios/VPNExtension/BoringTun |
48 | | - |
49 | | - - name: Generate boringtun bindings |
50 | | - run: cd ios/boringtun && ./bindings.sh |
51 | | - |
52 | | - - name: Update CocoaPods |
53 | | - run: pod repo update |
54 | | - |
55 | | - - name: Build iOS |
56 | | - run: flutter build ipa --release --obfuscate --split-debug-info=build/debug-info --build-number=${{ github.run_number }} |
57 | | - |
58 | | - # - name: Upload app to TestFlight |
59 | | - # uses: apple-actions/upload-testflight-build@v3 |
60 | | - # # Mobile applications are published to the App Store manually, with release tags applied |
61 | | - # # post-publication. To avoid redundant uploads, this step executes only for non-tagged |
62 | | - # # builds, ensuring tagged releases are distributed exclusively to GitHub. |
63 | | - # if: "!startsWith(github.ref, 'refs/tags/')" |
64 | | - # with: |
65 | | - # app-path: "client/build/ios/ipa/Defguard.ipa" |
66 | | - # issuer-id: ${{ secrets.API_ISSUER_ID }} |
67 | | - # api-key-id: ${{ secrets.ASC_API_KEY_ID }} |
68 | | - # api-private-key: ${{ secrets.PRIVATE_KEY_CONTENTS }} |
| 18 | + # build-ios: |
| 19 | + # runs-on: [self-hosted, macOS] |
| 20 | + # defaults: |
| 21 | + # run: |
| 22 | + # working-directory: ./client |
| 23 | + # steps: |
| 24 | + # - name: Checkout main repo |
| 25 | + # uses: actions/checkout@v6 |
| 26 | + # with: |
| 27 | + # submodules: "recursive" |
| 28 | + |
| 29 | + # - name: Setup flutter |
| 30 | + # uses: subosito/flutter-action@v2 |
| 31 | + # with: |
| 32 | + # channel: stable |
| 33 | + # flutter-version: 3.38.9 |
| 34 | + |
| 35 | + # - name: Use homebrew ruby |
| 36 | + # run: | |
| 37 | + # echo "/opt/homebrew/opt/ruby/bin" >> $GITHUB_PATH |
| 38 | + # echo "/opt/homebrew/bin" >> $GITHUB_PATH |
| 39 | + |
| 40 | + # - name: Install deps |
| 41 | + # run: flutter pub get |
| 42 | + |
| 43 | + # - name: Unlock Keychain |
| 44 | + # run: security -v unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" /Users/admin/Library/Keychains/login.keychain |
| 45 | + |
| 46 | + # - name: Create BoringTun directory |
| 47 | + # run: mkdir -p ios/VPNExtension/BoringTun |
| 48 | + |
| 49 | + # - name: Generate boringtun bindings |
| 50 | + # run: cd ios/boringtun && ./bindings.sh |
| 51 | + |
| 52 | + # - name: Update CocoaPods |
| 53 | + # run: pod repo update |
| 54 | + |
| 55 | + # - name: Build iOS |
| 56 | + # run: flutter build ipa --release --obfuscate --split-debug-info=build/debug-info --build-number=${{ github.run_number }} |
| 57 | + |
| 58 | + # # - name: Upload app to TestFlight |
| 59 | + # # uses: apple-actions/upload-testflight-build@v3 |
| 60 | + # # # Mobile applications are published to the App Store manually, with release tags applied |
| 61 | + # # # post-publication. To avoid redundant uploads, this step executes only for non-tagged |
| 62 | + # # # builds, ensuring tagged releases are distributed exclusively to GitHub. |
| 63 | + # # if: "!startsWith(github.ref, 'refs/tags/')" |
| 64 | + # # with: |
| 65 | + # # app-path: "client/build/ios/ipa/Defguard.ipa" |
| 66 | + # # issuer-id: ${{ secrets.API_ISSUER_ID }} |
| 67 | + # # api-key-id: ${{ secrets.ASC_API_KEY_ID }} |
| 68 | + # # api-private-key: ${{ secrets.PRIVATE_KEY_CONTENTS }} |
69 | 69 |
|
70 | 70 | build-android: |
71 | 71 | runs-on: [self-hosted, macOS] |
@@ -190,8 +190,8 @@ jobs: |
190 | 190 | path: "client/build/app/outputs/flutter-apk/app-release.apk" |
191 | 191 | retention-days: 2 |
192 | 192 |
|
193 | | - release: |
194 | | - needs: [build-ios, build-android, build-android-apk] |
195 | | - # Create release only if CI was triggered by a tag. |
196 | | - if: startsWith(github.ref, 'refs/tags/') |
197 | | - uses: ./.github/workflows/release.yaml |
| 193 | + # release: |
| 194 | + # needs: [build-ios, build-android, build-android-apk] |
| 195 | + # # Create release only if CI was triggered by a tag. |
| 196 | + # if: startsWith(github.ref, 'refs/tags/') |
| 197 | + # uses: ./.github/workflows/release.yaml |
0 commit comments