Skip to content

Commit

Permalink
wip: ci: try building for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed Mar 30, 2024
1 parent 9c87c72 commit a40196e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/flutter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
target: [Windows, Linux, macOS, Android]
target: [Windows, Linux, macOS, Android, iOS]
include:
- os: windows-latest
target: Windows
Expand All @@ -97,6 +97,12 @@ jobs:
build_path: build/app/outputs/flutter-apk
asset_extension: .apk
asset_content_type: application/vnd.android.package-archive
- os: macos-14
target: iOS
build_target: ios
build_path: build/ios
asset_extension: .zip
asset_content_type: application/zip
# Disable fail-fast as we want results from all even if one fails.
fail-fast: false

Expand Down Expand Up @@ -141,6 +147,10 @@ jobs:
bash ./tool/cargo-config-gen-android.sh >> ~/.cargo/config.toml
cat ~/.cargo/config.toml
- name: Set up Rust for iOS
if: matrix.target == 'iOS'
run: rustup target add aarch64-apple-ios

- name: Set up Rust for macOS
if: matrix.target == 'macOS'
run: |
Expand Down Expand Up @@ -199,6 +209,13 @@ jobs:
if: matrix.target == 'macOS'
run: ditto -c -k --sequesterRsrc --keepParent meesign_client.app $GITHUB_WORKSPACE/meesign_client_${{ matrix.target }}.zip
working-directory: ${{ matrix.build_path }}
- name: Compress build for iOS
if: matrix.target == 'iOS'
run: |
ls -l
ditto -c -k --sequesterRsrc --keepParent ipa $GITHUB_WORKSPACE/meesign_client_${{ matrix.target }}.zip
working-directory: ${{ matrix.build_path }}


# Upload the build.
- name: Upload build outputs
Expand Down

0 comments on commit a40196e

Please sign in to comment.