Skip to content

Commit

Permalink
Re-enable iOS in CI Release Workflow (#1265)
Browse files Browse the repository at this point in the history
* 8.0.0 release

* update debug symbols directory

* 8.0.0 release

* 8.0.0 release

* 8.0.0 release

* re-enable iOS support in CI
  • Loading branch information
atavism authored Dec 15, 2024
1 parent 1dabb8f commit fb15f0a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
target: aab
- os: ubuntu-latest
platform: linux
# - os: macos-latest
# platform: ios
- os: macos-latest
platform: ios
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -293,8 +293,10 @@ jobs:
VERSION: ${{ env.version }}
run: |
make ${{ matrix.platform }}-${{ matrix.target }}-release
@echo "Generating debug symbols"
make debug-symbols
- name: Generate debug symbols
if: matrix.platform == 'android' && matrix.target == 'aab'
run: make debug-symbols

- name: Build Flutter app
if: matrix.platform != 'windows' && matrix.platform != 'android'
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,19 @@ jobs:
with:
name: android-aab-build

# - name: Download the IPA
# uses: actions/download-artifact@v4
# with:
# name: Lantern.ipa

# - name: Upload Lantern to TestFlight
# uses: apple-actions/upload-testflight-build@v1
# if: (needs.set-version.outputs.prefix == 'lantern-installer-preview'|| needs.set-version.outputs.prefix == 'lantern-installer') && (needs.determine-platform.outputs.platform == 'ios' || needs.determine-platform.outputs.platform == 'all')
# with:
# app-path: Lantern.ipa
# issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
# api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }}
# api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
- name: Download the IPA
uses: actions/download-artifact@v4
with:
name: Lantern.ipa

- name: Upload Lantern to TestFlight
uses: apple-actions/upload-testflight-build@v1
if: (needs.set-version.outputs.prefix == 'lantern-installer-preview'|| needs.set-version.outputs.prefix == 'lantern-installer') && (needs.determine-platform.outputs.platform == 'ios' || needs.determine-platform.outputs.platform == 'all')
with:
app-path: Lantern.ipa
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}

- name: Upload Android App bundle to Play Store (beta)
if: needs.set-version.outputs.prefix == 'lantern-installer-preview' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all')
Expand All @@ -166,7 +166,6 @@ jobs:
debugSymbols: ${{ github.workspace }}/build/outputs/debug-symbols/debug-symbols.zip
mappingFile: ${{ github.workspace }}/build/app/outputs/mapping/prodPlay/mapping.txt


- name: Upload Android App bundle to Play Store (production)
if: needs.set-version.outputs.prefix == 'lantern-installer' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all')
uses: r0adkll/upload-google-play@v1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ $(ANDROID_LIB): $(GO_SOURCES)
-target=$(ANDROID_ARCH_GOMOBILE) \
-tags='headless lantern' -o=$(ANDROID_LIB) \
-androidapi=23 \
-ldflags="$(LDFLAGS) $(EXTRA_LDFLAGS)" \
-ldflags="-s -w $(LDFLAGS) $(EXTRA_LDFLAGS)" \
$(GOMOBILE_EXTRA_BUILD_FLAGS) \
github.com/getlantern/lantern-client/internalsdk github.com/getlantern/pathdb/testsupport github.com/getlantern/pathdb/minisql

Expand Down

0 comments on commit fb15f0a

Please sign in to comment.