diff --git a/.github/workflows/pr_build_all_platforms.yml b/.github/workflows/pr_build_all_platforms.yml index 51e0b326..8a9d9b33 100644 --- a/.github/workflows/pr_build_all_platforms.yml +++ b/.github/workflows/pr_build_all_platforms.yml @@ -35,6 +35,18 @@ jobs: artifact_name: android-apk artifact_path: open_wearable/build/app/outputs/flutter-apk/app-release.apk android: true + - target: ios + name: iOS + os: macos-latest + build_command: flutter build ios --release --no-codesign + artifact_name: ios-runner + artifact_path: open_wearable/build/ios/iphoneos/Runner.app + - target: macos + name: macOS + os: macos-latest + build_command: flutter build macos --release + artifact_name: macos-app + artifact_path: open_wearable/build/macos/Build/Products/Release/open_wearable.app - target: linux name: Linux os: ubuntu-latest @@ -115,6 +127,8 @@ jobs: const repoUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}`; const artifactLabels = new Map([ ['android-apk', 'Android APK'], + ['ios-runner', 'iOS Runner'], + ['macos-app', 'macOS App'], ['linux-bundle', 'Linux Bundle'], ['windows-runner', 'Windows Runner'], ['web-bundle', 'Web Bundle'], diff --git a/open_wearable/ios/ci_scripts/ci_post_clone.sh b/open_wearable/ios/ci_scripts/ci_post_clone.sh index 03347e70..e5d0a79b 100755 --- a/open_wearable/ios/ci_scripts/ci_post_clone.sh +++ b/open_wearable/ios/ci_scripts/ci_post_clone.sh @@ -26,17 +26,17 @@ cd $CI_WORKSPACE_PATH echo "🟩 Install Flutter Dependencies" cd repository/open_wearable time flutter clean -time flutter pub get -time flutter pub upgrade +time flutter pub get --enforce-lockfile echo "🟩 Install CocoaPods via Homebrew" time HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods echo "🟩 Install CocoaPods dependencies..." -time cd ios && pod install -cd ../ +cd ios +time pod install +cd .. echo "🟩 build iOS" time flutter build ios --release --no-codesign -exit 0 \ No newline at end of file +exit 0